From bef6ac8ca91ef6c1f1c526fa41ae28c0e6062603 Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Thu, 7 May 2020 11:57:06 +0100 Subject: [PATCH] Use https for links where possible Also fix some (semi-)broken links found while checking https availability. Author: Rebecca N. Palmer Forwarded: accepted for 1.1 https://github.com/pandas-dev/pandas/pull/31145 Gbp-Pq: Name link_security.patch --- .github/CODE_OF_CONDUCT.md | 6 +- .github/CONTRIBUTING.md | 2 +- AUTHORS.md | 2 +- RELEASE.md | 4 +- asv_bench/benchmarks/pandas_vb_common.py | 2 +- doc/cheatsheet/README.txt | 2 +- doc/source/conf.py | 6 +- doc/source/development/contributing.rst | 38 ++++++------ .../development/contributing_docstring.rst | 4 +- doc/source/development/extending.rst | 2 +- doc/source/ecosystem.rst | 4 +- .../comparison/comparison_with_r.rst | 26 ++++---- .../comparison/comparison_with_stata.rst | 2 +- doc/source/getting_started/dsintro.rst | 2 +- doc/source/getting_started/tutorials.rst | 40 ++++++------ doc/source/install.rst | 62 +++++++++---------- doc/source/user_guide/computation.rst | 4 +- doc/source/user_guide/enhancingperf.rst | 10 +-- doc/source/user_guide/io.rst | 4 +- doc/source/user_guide/missing_data.rst | 6 +- doc/source/user_guide/style.ipynb | 4 +- doc/source/user_guide/visualization.rst | 18 +++--- doc/source/whatsnew/index.rst | 2 +- pandas/_libs/intervaltree.pxi.in | 2 +- pandas/_libs/src/klib/khash.h | 2 +- pandas/_libs/src/skiplist.h | 2 +- pandas/_libs/src/ujson/lib/ultrajson.h | 2 +- pandas/_libs/src/ujson/lib/ultrajsondec.c | 2 +- pandas/_libs/src/ujson/lib/ultrajsonenc.c | 2 +- pandas/_libs/src/ujson/python/JSONtoObj.c | 2 +- pandas/_libs/src/ujson/python/objToJSON.c | 2 +- pandas/_libs/src/ujson/python/ujson.c | 2 +- pandas/_libs/src/ujson/python/version.h | 2 +- pandas/_libs/tslibs/c_timestamp.pyx | 2 +- pandas/_libs/tslibs/nattype.pyx | 2 +- pandas/core/accessor.py | 2 +- pandas/core/arrays/datetimes.py | 2 +- pandas/core/frame.py | 8 +-- pandas/core/generic.py | 8 +-- pandas/io/formats/format.py | 2 +- pandas/io/gbq.py | 4 +- pandas/io/html.py | 4 +- pandas/io/json/_table_schema.py | 2 +- pandas/io/stata.py | 8 +-- pandas/plotting/_misc.py | 2 +- pandas/tests/indexes/multi/test_analytics.py | 2 +- pandas/tests/indexes/test_numpy_compat.py | 4 +- pandas/tests/tseries/offsets/test_fiscal.py | 4 +- pandas/tseries/offsets.py | 4 +- pandas/util/_decorators.py | 2 +- setup.py | 2 +- versioneer.py | 2 +- 52 files changed, 169 insertions(+), 169 deletions(-) diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md index a1fbece3..7dd2e042 100644 --- a/.github/CODE_OF_CONDUCT.md +++ b/.github/CODE_OF_CONDUCT.md @@ -54,10 +54,10 @@ incident. This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.3.0, available at -[http://contributor-covenant.org/version/1/3/0/][version], +[https://www.contributor-covenant.org/version/1/3/0/][version], and the [Swift Code of Conduct][swift]. -[homepage]: http://contributor-covenant.org -[version]: http://contributor-covenant.org/version/1/3/0/ +[homepage]: https://www.contributor-covenant.org +[version]: https://www.contributor-covenant.org/version/1/3/0/ [swift]: https://swift.org/community/#code-of-conduct diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 2e6e9802..bc31d362 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -16,7 +16,7 @@ If you notice a bug in the code or documentation, or have suggestions for how we ## Contributing to the Codebase -The code is hosted on [GitHub](https://www.github.com/pandas-dev/pandas), so you will need to use [Git](http://git-scm.com/) to clone the project and make changes to the codebase. Once you have obtained a copy of the code, you should create a development environment that is separate from your existing Python environment so that you can make and test changes without compromising your own work environment. For more information, please refer to the "[Working with the code](https://github.com/pandas-dev/pandas/blob/master/doc/source/development/contributing.rst#working-with-the-code)" section. +The code is hosted on [GitHub](https://www.github.com/pandas-dev/pandas), so you will need to use [Git](https://git-scm.com/) to clone the project and make changes to the codebase. Once you have obtained a copy of the code, you should create a development environment that is separate from your existing Python environment so that you can make and test changes without compromising your own work environment. For more information, please refer to the "[Working with the code](https://github.com/pandas-dev/pandas/blob/master/doc/source/development/contributing.rst#working-with-the-code)" section. Before submitting your changes for review, make sure to check that your changes do not break any tests. You can find more information about our test suites in the "[Test-driven development/code writing](https://github.com/pandas-dev/pandas/blob/master/doc/source/development/contributing.rst#test-driven-development-code-writing)" section. We also have guidelines regarding coding style that will be enforced during testing, which can be found in the "[Code standards](https://github.com/pandas-dev/pandas/blob/master/doc/source/development/contributing.rst#code-standards)" section. diff --git a/AUTHORS.md b/AUTHORS.md index dcaaea10..f576e333 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -14,7 +14,7 @@ About the Copyright Holders The PyData Development Team is the collection of developers of the PyData project. This includes all of the PyData sub-projects, including pandas. The core team that coordinates development on GitHub can be found here: - http://github.com/pydata. + https://github.com/pydata. Full credits for pandas contributors can be found in the documentation. diff --git a/RELEASE.md b/RELEASE.md index efd075da..42cb82df 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -2,5 +2,5 @@ Release Notes ============= The list of changes to Pandas between each release can be found -[here](http://pandas.pydata.org/pandas-docs/stable/whatsnew.html). For full -details, see the commit logs at http://github.com/pandas-dev/pandas. +[here](https://pandas.pydata.org/pandas-docs/stable/whatsnew/index.html). For full +details, see the commit logs at https://github.com/pandas-dev/pandas. diff --git a/asv_bench/benchmarks/pandas_vb_common.py b/asv_bench/benchmarks/pandas_vb_common.py index fdc82070..2aae743e 100644 --- a/asv_bench/benchmarks/pandas_vb_common.py +++ b/asv_bench/benchmarks/pandas_vb_common.py @@ -48,7 +48,7 @@ except AttributeError: def setup(*args, **kwargs): # This function just needs to be imported into each benchmark file to # set up the random seed before each function. - # http://asv.readthedocs.io/en/latest/writing_benchmarks.html + # https://asv.readthedocs.io/en/latest/writing_benchmarks.html np.random.seed(1234) diff --git a/doc/cheatsheet/README.txt b/doc/cheatsheet/README.txt index 0eae39f3..c57da38b 100644 --- a/doc/cheatsheet/README.txt +++ b/doc/cheatsheet/README.txt @@ -5,4 +5,4 @@ and pick "PDF" as the format. This cheat sheet was inspired by the RStudio Data Wrangling Cheatsheet[1], written by Irv Lustig, Princeton Consultants[2]. [1]: https://www.rstudio.com/wp-content/uploads/2015/02/data-wrangling-cheatsheet.pdf -[2]: http://www.princetonoptimization.com/ +[2]: https://www.princetonoptimization.com/ diff --git a/doc/source/conf.py b/doc/source/conf.py index db8f4249..bb90b002 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -632,11 +632,11 @@ def linkcode_resolve(domain, info): fn = os.path.relpath(fn, start=os.path.dirname(pandas.__file__)) if "+" in pandas.__version__: - return "http://github.com/pandas-dev/pandas/blob/master/pandas/" "{}{}".format( + return "https://github.com/pandas-dev/pandas/blob/master/pandas/" "{}{}".format( fn, linespec ) else: - return "http://github.com/pandas-dev/pandas/blob/" "v{}/pandas/{}{}".format( + return "https://github.com/pandas-dev/pandas/blob/" "v{}/pandas/{}{}".format( pandas.__version__, fn, linespec ) @@ -703,7 +703,7 @@ def rstjinja(app, docname, source): """ Render our pages as a jinja template for fancy templating goodness. """ - # http://ericholscher.com/blog/2016/jul/25/integrating-jinja-rst-sphinx/ + # https://www.ericholscher.com/blog/2016/jul/25/integrating-jinja-rst-sphinx/ # Make sure we're outputting HTML if app.builder.format != "html": return diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst index 80dc8b0d..7c3c3212 100644 --- a/doc/source/development/contributing.rst +++ b/doc/source/development/contributing.rst @@ -35,7 +35,7 @@ Bug reports and enhancement requests Bug reports are an important part of making *pandas* more stable. Having a complete bug report will allow others to reproduce the bug and provide insight into fixing. See `this stackoverflow article `_ and -`this blogpost `_ +`this blogpost `_ for tips on writing a good bug report. Trying the bug-producing code out on the *master* branch is often a worthwhile exercise @@ -46,7 +46,7 @@ Bug reports must: #. Include a short, self-contained Python snippet reproducing the problem. You can format the code nicely by using `GitHub Flavored Markdown - `_:: + `_:: ```python >>> from pandas import DataFrame @@ -83,19 +83,19 @@ feel free to ask for help. The code is hosted on `GitHub `_. To contribute you will need to sign up for a `free GitHub account -`_. We use `Git `_ for +`_. We use `Git `_ for version control to allow many people to work together on the project. Some great resources for learning Git: -* the `GitHub help pages `_. -* the `NumPy's documentation `_. -* Matthew Brett's `Pydagogue `_. +* the `GitHub help pages `_. +* the `NumPy's documentation `_. +* Matthew Brett's `Pydagogue `_. Getting started with Git ------------------------ -`GitHub has instructions `__ for installing git, +`GitHub has instructions `__ for installing git, setting up your SSH key, and configuring git. All these steps need to be completed before you can work seamlessly between your local repository and GitHub. @@ -204,7 +204,7 @@ To return to your root environment:: conda deactivate -See the full conda docs `here `__. +See the full conda docs `here `__. .. _contributing.pip: @@ -280,9 +280,9 @@ About the *pandas* documentation -------------------------------- The documentation is written in **reStructuredText**, which is almost like writing -in plain English, and built using `Sphinx `__. The +in plain English, and built using `Sphinx `__. The Sphinx Documentation has an excellent `introduction to reST -`__. Review the Sphinx docs to perform more +`__. Review the Sphinx docs to perform more complex changes to the documentation as well. Some other important things to know about the docs: @@ -305,7 +305,7 @@ Some other important things to know about the docs: contributing_docstring.rst * The tutorials make heavy use of the `ipython directive - `_ sphinx extension. + `_ sphinx extension. This directive lets you put code in the documentation which will be run during the doc build. For example:: @@ -351,7 +351,7 @@ Some other important things to know about the docs: The ``.rst`` files are used to automatically generate Markdown and HTML versions of the docs. For this reason, please do not edit ``CONTRIBUTING.md`` directly, but instead make any changes to ``doc/source/development/contributing.rst``. Then, to - generate ``CONTRIBUTING.md``, use `pandoc `_ + generate ``CONTRIBUTING.md``, use `pandoc `_ with the following command:: pandoc doc/source/development/contributing.rst -t markdown_github > CONTRIBUTING.md @@ -536,8 +536,8 @@ You can also run this command on an entire directory if necessary:: cpplint --extensions=c,h --headers=h --filter=-readability/casting,-runtime/int,-build/include_subdir --recursive modified-c-directory To make your commits compliant with this standard, you can install the -`ClangFormat `_ tool, which can be -downloaded `here `__. To configure, in your home directory, +`ClangFormat `_ tool, which can be +downloaded `here `__. To configure, in your home directory, run the following command:: clang-format style=google -dump-config > .clang-format @@ -565,7 +565,7 @@ fixes manually. Python (PEP8 / black) ~~~~~~~~~~~~~~~~~~~~~ -*pandas* follows the `PEP8 `_ standard +*pandas* follows the `PEP8 `_ standard and uses `Black `_ and `Flake8 `_ to ensure a consistent code format throughout the project. @@ -755,9 +755,9 @@ Adding tests is one of the most common requests after code is pushed to *pandas* it is worth getting in the habit of writing tests ahead of time so this is never an issue. Like many packages, *pandas* uses `pytest -`_ and the convenient +`_ and the convenient extensions in `numpy.testing -`_. +`_. .. note:: @@ -805,7 +805,7 @@ Transitioning to ``pytest`` class TestReallyCoolFeature: pass -Going forward, we are moving to a more *functional* style using the `pytest `__ framework, which offers a richer testing +Going forward, we are moving to a more *functional* style using the `pytest `__ framework, which offers a richer testing framework that will facilitate testing and developing. Thus, instead of writing test classes, we will write test functions like this: .. code-block:: python @@ -1038,7 +1038,7 @@ On Windows, one can type:: This can significantly reduce the time it takes to locally run tests before submitting a pull request. -For more, see the `pytest `_ documentation. +For more, see the `pytest `_ documentation. .. versionadded:: 0.20.0 diff --git a/doc/source/development/contributing_docstring.rst b/doc/source/development/contributing_docstring.rst index 34bc5f44..bfe49069 100644 --- a/doc/source/development/contributing_docstring.rst +++ b/doc/source/development/contributing_docstring.rst @@ -77,8 +77,8 @@ language that allows encoding styles in plain text files. Documentation about reStructuredText can be found in: * `Sphinx reStructuredText primer `_ -* `Quick reStructuredText reference `_ -* `Full reStructuredText specification `_ +* `Quick reStructuredText reference `_ +* `Full reStructuredText specification `_ Pandas has some helpers for sharing docstrings between related classes, see :ref:`docstring.sharing`. diff --git a/doc/source/development/extending.rst b/doc/source/development/extending.rst index e341dcb8..d20d2d33 100644 --- a/doc/source/development/extending.rst +++ b/doc/source/development/extending.rst @@ -264,7 +264,7 @@ Subclassing pandas data structures 1. Extensible method chains with :ref:`pipe ` - 2. Use *composition*. See `here `_. + 2. Use *composition*. See `here `_. 3. Extending by :ref:`registering an accessor ` diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index b76dd3e0..71961526 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -267,8 +267,8 @@ dimensional arrays, rather than the tabular data for which pandas excels. Out-of-core ------------- -`Blaze `__ -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +`Blaze `__ +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blaze provides a standard API for doing computations with various in-memory and on-disk backends: NumPy, Pandas, SQLAlchemy, MongoDB, PyTables, diff --git a/doc/source/getting_started/comparison/comparison_with_r.rst b/doc/source/getting_started/comparison/comparison_with_r.rst index 48609858..aa3610bf 100644 --- a/doc/source/getting_started/comparison/comparison_with_r.rst +++ b/doc/source/getting_started/comparison/comparison_with_r.rst @@ -6,9 +6,9 @@ Comparison with R / R libraries ******************************* Since ``pandas`` aims to provide a lot of the data manipulation and analysis -functionality that people use `R `__ for, this page +functionality that people use `R `__ for, this page was started to provide a more detailed look at the `R language -`__ and its many third +`__ and its many third party libraries as they relate to ``pandas``. In comparisons with R and CRAN libraries, we care about the following things: @@ -518,37 +518,37 @@ For more details and examples see :ref:`categorical introduction ` .. |c| replace:: ``c`` -.. _c: http://stat.ethz.ch/R-manual/R-patched/library/base/html/c.html +.. _c: https://stat.ethz.ch/R-manual/R-patched/library/base/html/c.html .. |aggregate| replace:: ``aggregate`` -.. _aggregate: http://finzi.psych.upenn.edu/R/library/stats/html/aggregate.html +.. _aggregate: https://stat.ethz.ch/R-manual/R-patched/library/stats/html/aggregate.html .. |match| replace:: ``match`` / ``%in%`` -.. _match: http://finzi.psych.upenn.edu/R/library/base/html/match.html +.. _match: https://stat.ethz.ch/R-manual/R-patched/library/base/html/match.html .. |tapply| replace:: ``tapply`` -.. _tapply: http://finzi.psych.upenn.edu/R/library/base/html/tapply.html +.. _tapply: https://stat.ethz.ch/R-manual/R-patched/library/base/html/tapply.html .. |with| replace:: ``with`` -.. _with: http://finzi.psych.upenn.edu/R/library/base/html/with.html +.. _with: https://stat.ethz.ch/R-manual/R-patched/library/base/html/with.html .. |subset| replace:: ``subset`` -.. _subset: http://finzi.psych.upenn.edu/R/library/base/html/subset.html +.. _subset: https://stat.ethz.ch/R-manual/R-patched/library/base/html/subset.html .. |ddply| replace:: ``ddply`` -.. _ddply: http://www.inside-r.org/packages/cran/plyr/docs/ddply +.. _ddply: https://cran.r-project.org/web/packages/plyr/plyr.pdf#Rfn.ddply.1 .. |meltarray| replace:: ``melt.array`` -.. _meltarray: http://www.inside-r.org/packages/cran/reshape2/docs/melt.array +.. _meltarray: https://cran.r-project.org/web/packages/reshape2/reshape2.pdf#Rfn.melt.array.1 .. |meltlist| replace:: ``melt.list`` -.. meltlist: http://www.inside-r.org/packages/cran/reshape2/docs/melt.list +.. meltlist: https://cran.r-project.org/web/packages/reshape2/reshape2.pdf#Rfn.melt.list.1 .. |meltdf| replace:: ``melt.data.frame`` -.. meltdf: http://www.inside-r.org/packages/cran/reshape2/docs/melt.data.frame +.. meltdf: https://cran.r-project.org/web/packages/reshape2/reshape2.pdf#Rfn.melt.data.frame.1 .. |cast| replace:: ``cast`` -.. cast: http://www.inside-r.org/packages/cran/reshape2/docs/cast +.. cast: https://cran.r-project.org/web/packages/reshape2/reshape2.pdf#Rfn.cast.1 .. |factor| replace:: ``factor`` .. _factor: https://stat.ethz.ch/R-manual/R-devel/library/base/html/factor.html diff --git a/doc/source/getting_started/comparison/comparison_with_stata.rst b/doc/source/getting_started/comparison/comparison_with_stata.rst index db687386..bd413d50 100644 --- a/doc/source/getting_started/comparison/comparison_with_stata.rst +++ b/doc/source/getting_started/comparison/comparison_with_stata.rst @@ -673,6 +673,6 @@ Disk vs memory Pandas and Stata both operate exclusively in memory. This means that the size of data able to be loaded in pandas is limited by your machine's memory. If out of core processing is needed, one possibility is the -`dask.dataframe `_ +`dask.dataframe `_ library, which provides a subset of pandas functionality for an on-disk ``DataFrame``. diff --git a/doc/source/getting_started/dsintro.rst b/doc/source/getting_started/dsintro.rst index 2fb0b163..77d9cbdf 100644 --- a/doc/source/getting_started/dsintro.rst +++ b/doc/source/getting_started/dsintro.rst @@ -658,7 +658,7 @@ union of the column and row labels. When doing an operation between DataFrame and Series, the default behavior is to align the Series **index** on the DataFrame **columns**, thus `broadcasting -`__ +`__ row-wise. For example: .. ipython:: python diff --git a/doc/source/getting_started/tutorials.rst b/doc/source/getting_started/tutorials.rst index 212f3636..a16a58fd 100644 --- a/doc/source/getting_started/tutorials.rst +++ b/doc/source/getting_started/tutorials.rst @@ -23,12 +23,12 @@ Community guides pandas Cookbook by Julia Evans ------------------------------ -The goal of this 2015 cookbook (by `Julia Evans `_) is to +The goal of this 2015 cookbook (by `Julia Evans `_) is to give you some concrete examples for getting started with pandas. These are examples with real-world data, and all the bugs and weirdness that entails. For the table of contents, see the `pandas-cookbook GitHub -repository `_. +repository `_. Learn Pandas by Hernan Rojas ---------------------------- @@ -38,10 +38,10 @@ A set of lesson for new pandas users: https://bitbucket.org/hrojas/learn-pandas Practical data analysis with Python ----------------------------------- -This `guide `_ is an introduction to the data analysis process using the Python data ecosystem and an interesting open dataset. -There are four sections covering selected topics as `munging data `__, -`aggregating data `_, `visualizing data `_ -and `time series `_. +This `guide `_ is an introduction to the data analysis process using the Python data ecosystem and an interesting open dataset. +There are four sections covering selected topics as `munging data `__, +`aggregating data `_, `visualizing data `_ +and `time series `_. .. _tutorial-exercises-new-users: @@ -61,13 +61,13 @@ Tutorial series written in 2016 by The source may be found in the GitHub repository `TomAugspurger/effective-pandas `_. -* `Modern Pandas `_ -* `Method Chaining `_ -* `Indexes `_ -* `Performance `_ -* `Tidy Data `_ -* `Visualization `_ -* `Timeseries `_ +* `Modern Pandas `_ +* `Method Chaining `_ +* `Indexes `_ +* `Performance `_ +* `Tidy Data `_ +* `Visualization `_ +* `Timeseries `_ Excel charts with pandas, vincent and xlsxwriter ------------------------------------------------ @@ -89,21 +89,21 @@ Video tutorials * `Data analysis in Python with pandas `_ (2016-2018) `GitHub repo `__ and - `Jupyter Notebook `__ + `Jupyter Notebook `__ * `Best practices with pandas `_ (2018) `GitHub repo `__ and - `Jupyter Notebook `__ + `Jupyter Notebook `__ Various tutorials ----------------- -* `Wes McKinney's (pandas BDFL) blog `_ +* `Wes McKinney's (pandas BDFL) blog `_ * `Statistical analysis made easy in Python with SciPy and pandas DataFrames, by Randal Olson `_ -* `Statistical Data Analysis in Python, tutorial videos, by Christopher Fonnesbeck from SciPy 2013 `_ -* `Financial analysis in Python, by Thomas Wiecki `_ +* `Statistical Data Analysis in Python, tutorial videos, by Christopher Fonnesbeck from SciPy 2013 `_ +* `Financial analysis in Python, by Thomas Wiecki `_ * `Intro to pandas data structures, by Greg Reda `_ -* `Pandas and Python: Top 10, by Manish Amde `_ -* `Pandas DataFrames Tutorial, by Karlijn Willems `_ +* `Pandas and Python: Top 10, by Manish Amde `_ +* `Pandas DataFrames Tutorial, by Karlijn Willems `_ * `A concise tutorial with real life examples `_ diff --git a/doc/source/install.rst b/doc/source/install.rst index 7d1150c2..ee11655c 100644 --- a/doc/source/install.rst +++ b/doc/source/install.rst @@ -7,13 +7,13 @@ Installation ============ The easiest way to install pandas is to install it -as part of the `Anaconda `__ distribution, a +as part of the `Anaconda `__ distribution, a cross platform distribution for data analysis and scientific computing. This is the recommended installation method for most users. Instructions for installing from source, `PyPI `__, `ActivePython `__, various Linux distributions, or a -`development version `__ are also provided. +`development version `__ are also provided. Python version support ---------------------- @@ -28,28 +28,28 @@ Installing pandas Installing with Anaconda ~~~~~~~~~~~~~~~~~~~~~~~~ -Installing pandas and the rest of the `NumPy `__ and -`SciPy `__ stack can be a little +Installing pandas and the rest of the `NumPy `__ and +`SciPy `__ stack can be a little difficult for inexperienced users. The simplest way to install not only pandas, but Python and the most popular -packages that make up the `SciPy `__ stack -(`IPython `__, `NumPy `__, -`Matplotlib `__, ...) is with -`Anaconda `__, a cross-platform +packages that make up the `SciPy `__ stack +(`IPython `__, `NumPy `__, +`Matplotlib `__, ...) is with +`Anaconda `__, a cross-platform (Linux, Mac OS X, Windows) Python distribution for data analytics and scientific computing. After running the installer, the user will have access to pandas and the -rest of the `SciPy `__ stack without needing to install +rest of the `SciPy `__ stack without needing to install anything else, and without needing to wait for any software to be compiled. -Installation instructions for `Anaconda `__ -`can be found here `__. +Installation instructions for `Anaconda `__ +`can be found here `__. A full list of the packages available as part of the -`Anaconda `__ distribution -`can be found here `__. +`Anaconda `__ distribution +`can be found here `__. Another advantage to installing Anaconda is that you don't need admin rights to install it. Anaconda can install in the user's home directory, @@ -62,28 +62,28 @@ Installing with Miniconda ~~~~~~~~~~~~~~~~~~~~~~~~~ The previous section outlined how to get pandas installed as part of the -`Anaconda `__ distribution. +`Anaconda `__ distribution. However this approach means you will install well over one hundred packages and involves downloading the installer which is a few hundred megabytes in size. If you want to have more control on which packages, or have a limited internet bandwidth, then installing pandas with -`Miniconda `__ may be a better solution. +`Miniconda `__ may be a better solution. -`Conda `__ is the package manager that the -`Anaconda `__ distribution is built upon. +`Conda `__ is the package manager that the +`Anaconda `__ distribution is built upon. It is a package manager that is both cross-platform and language agnostic (it can play a similar role to a pip and virtualenv combination). -`Miniconda `__ allows you to create a +`Miniconda `__ allows you to create a minimal self contained Python installation, and then use the -`Conda `__ command to install additional packages. +`Conda `__ command to install additional packages. -First you will need `Conda `__ to be installed and +First you will need `Conda `__ to be installed and downloading and running the `Miniconda -`__ +`__ will do this for you. The installer -`can be found here `__ +`can be found here `__ The next step is to create a new conda environment. A conda environment is like a virtualenv that allows you to specify a specific version of Python and set of libraries. @@ -113,7 +113,7 @@ To install other packages, IPython for example:: conda install ipython -To install the full `Anaconda `__ +To install the full `Anaconda `__ distribution:: conda install anaconda @@ -153,10 +153,10 @@ To install pandas for Python 2, you may need to use the ``python-pandas`` packag :widths: 10, 10, 20, 50 - Debian, stable, `official Debian repository `__ , ``sudo apt-get install python3-pandas`` + Debian, stable, `official Debian repository `__ , ``sudo apt-get install python3-pandas`` Debian & Ubuntu, unstable (latest packages), `NeuroDebian `__ , ``sudo apt-get install python3-pandas`` - Ubuntu, stable, `official Ubuntu repository `__ , ``sudo apt-get install python3-pandas`` - OpenSuse, stable, `OpenSuse Repository `__ , ``zypper in python3-pandas`` + Ubuntu, stable, `official Ubuntu repository `__ , ``sudo apt-get install python3-pandas`` + OpenSuse, stable, `OpenSuse Repository `__ , ``zypper in python3-pandas`` Fedora, stable, `official Fedora repository `__ , ``dnf install python3-pandas`` Centos/RHEL, stable, `EPEL repository `__ , ``yum install python3-pandas`` @@ -177,7 +177,7 @@ pandas is equipped with an exhaustive set of unit tests, covering about 97% of the code base as of this writing. To run it on your machine to verify that everything is working (and that you have all of the dependencies, soft and hard, installed), make sure you have `pytest -`__ >= 4.0.2 and `Hypothesis +`__ >= 4.0.2 and `Hypothesis `__ >= 3.58, then run: :: @@ -204,9 +204,9 @@ Dependencies Package Minimum supported version ================================================================ ========================== `setuptools `__ 24.2.0 -`NumPy `__ 1.13.3 +`NumPy `__ 1.13.3 `python-dateutil `__ 2.6.1 -`pytz `__ 2017.2 +`pytz `__ 2017.2 ================================================================ ========================== .. _install.recommended_dependencies: @@ -299,5 +299,5 @@ top-level :func:`~pandas.read_html` function: usage of the above three libraries. .. _html5lib: https://github.com/html5lib/html5lib-python -.. _BeautifulSoup4: http://www.crummy.com/software/BeautifulSoup -.. _lxml: http://lxml.de +.. _BeautifulSoup4: https://www.crummy.com/software/BeautifulSoup +.. _lxml: https://lxml.de diff --git a/doc/source/user_guide/computation.rst b/doc/source/user_guide/computation.rst index 385db1a2..fa54c26b 100644 --- a/doc/source/user_guide/computation.rst +++ b/doc/source/user_guide/computation.rst @@ -58,7 +58,7 @@ series in the DataFrame, also excluding NA/null values. is not guaranteed to be positive semi-definite. This could lead to estimated correlations having absolute values which are greater than one, and/or a non-invertible covariance matrix. See `Estimation of covariance - matrices `_ + matrices `_ for more details. .. ipython:: python @@ -963,5 +963,5 @@ are scaled by debiasing factors (For :math:`w_i = 1`, this reduces to the usual :math:`N / (N - 1)` factor, with :math:`N = t + 1`.) -See `Weighted Sample Variance `__ +See `Weighted Sample Variance `__ on Wikipedia for further details. diff --git a/doc/source/user_guide/enhancingperf.rst b/doc/source/user_guide/enhancingperf.rst index fa2fe1ad..f1413aaf 100644 --- a/doc/source/user_guide/enhancingperf.rst +++ b/doc/source/user_guide/enhancingperf.rst @@ -20,7 +20,7 @@ Cython (writing C extensions for pandas) For many use cases writing pandas in pure Python and NumPy is sufficient. In some computationally heavy applications however, it can be possible to achieve sizable -speed-ups by offloading work to `cython `__. +speed-ups by offloading work to `cython `__. This tutorial assumes you have refactored as much as possible in Python, for example by trying to remove for-loops and making use of NumPy vectorization. It's always worth @@ -69,7 +69,7 @@ We achieve our result by using ``apply`` (row-wise): But clearly this isn't fast enough for us. Let's take a look and see where the time is spent during this operation (limited to the most time consuming -four calls) using the `prun ipython magic function `__: +four calls) using the `prun ipython magic function `__: .. ipython:: python @@ -298,7 +298,7 @@ advanced Cython techniques: Even faster, with the caveat that a bug in our Cython code (an off-by-one error, for example) might cause a segfault because memory access isn't checked. For more about ``boundscheck`` and ``wraparound``, see the Cython docs on -`compiler directives `__. +`compiler directives `__. .. _enhancingperf.numba: @@ -423,9 +423,9 @@ prefer that Numba throw an error if it cannot compile a function in a way that speeds up your code, pass Numba the argument ``nopython=True`` (e.g. ``@numba.jit(nopython=True)``). For more on troubleshooting Numba modes, see the `Numba troubleshooting page -`__. +`__. -Read more in the `Numba docs `__. +Read more in the `Numba docs `__. .. _enhancingperf.eval: diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index eac86dda..e7c12084 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -4299,13 +4299,13 @@ control compression: ``complevel`` and ``complib``. - `zlib `_: The default compression library. A classic in terms of compression, achieves good compression rates but is somewhat slow. - `lzo `_: Fast compression and decompression. - `bzip2 `_: Good compression rates. - - `blosc `_: Fast compression and decompression. + - `blosc `_: Fast compression and decompression. .. versionadded:: 0.20.2 Support for alternative blosc compressors: - - `blosc:blosclz `_ This is the + - `blosc:blosclz `_ This is the default compressor for ``blosc`` - `blosc:lz4 `_: diff --git a/doc/source/user_guide/missing_data.rst b/doc/source/user_guide/missing_data.rst index 6c36a647..55bb7692 100644 --- a/doc/source/user_guide/missing_data.rst +++ b/doc/source/user_guide/missing_data.rst @@ -466,9 +466,9 @@ at the new values. interp_s = ser.reindex(new_index).interpolate(method='pchip') interp_s[49:51] -.. _scipy: http://www.scipy.org -.. _documentation: http://docs.scipy.org/doc/scipy/reference/interpolate.html#univariate-interpolation -.. _guide: http://docs.scipy.org/doc/scipy/reference/tutorial/interpolate.html +.. _scipy: https://www.scipy.org +.. _documentation: https://docs.scipy.org/doc/scipy/reference/interpolate.html#univariate-interpolation +.. _guide: https://docs.scipy.org/doc/scipy/reference/tutorial/interpolate.html .. _missing_data.interp_limits: diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb index 8aa1f63e..87608e70 100644 --- a/doc/source/user_guide/style.ipynb +++ b/doc/source/user_guide/style.ipynb @@ -10,7 +10,7 @@ "\n", "*Provisional: This is a new feature and still under development. We'll be adding features and possibly making breaking changes in future releases. We'd love to hear your feedback.*\n", "\n", - "This document is written as a Jupyter Notebook, and can be viewed or downloaded [here](http://nbviewer.ipython.org/github/pandas-dev/pandas/blob/master/doc/source/style.ipynb).\n", + "This document is written as a Jupyter Notebook, and can be viewed or downloaded [here](https://nbviewer.ipython.org/github/pandas-dev/pandas/blob/master/doc/source/user_guide/style.ipynb).\n", "\n", "You can apply **conditional formatting**, the visual styling of a DataFrame\n", "depending on the data within, by using the ``DataFrame.style`` property.\n", @@ -433,7 +433,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "You can create \"heatmaps\" with the `background_gradient` method. These require matplotlib, and we'll use [Seaborn](http://stanford.edu/~mwaskom/software/seaborn/) to get a nice colormap." + "You can create \"heatmaps\" with the `background_gradient` method. These require matplotlib, and we'll use [Seaborn](https://stanford.edu/~mwaskom/software/seaborn/) to get a nice colormap." ] }, { diff --git a/doc/source/user_guide/visualization.rst b/doc/source/user_guide/visualization.rst index cef09e40..ea0da8e9 100644 --- a/doc/source/user_guide/visualization.rst +++ b/doc/source/user_guide/visualization.rst @@ -264,7 +264,7 @@ horizontal and cumulative histograms can be drawn by plt.close('all') See the :meth:`hist ` method and the -`matplotlib hist documentation `__ for more. +`matplotlib hist documentation `__ for more. The existing interface ``DataFrame.hist`` to plot histogram still can be used. @@ -370,7 +370,7 @@ For example, horizontal and custom-positioned boxplot can be drawn by See the :meth:`boxplot ` method and the -`matplotlib boxplot documentation `__ for more. +`matplotlib boxplot documentation `__ for more. The existing interface ``DataFrame.boxplot`` to plot boxplot still can be used. @@ -595,7 +595,7 @@ bubble chart using a column of the ``DataFrame`` as the bubble size. plt.close('all') See the :meth:`scatter ` method and the -`matplotlib scatter documentation `__ for more. +`matplotlib scatter documentation `__ for more. .. _visualization.hexbin: @@ -655,7 +655,7 @@ given by column ``z``. The bins are aggregated with NumPy's ``max`` function. plt.close('all') See the :meth:`hexbin ` method and the -`matplotlib hexbin documentation `__ for more. +`matplotlib hexbin documentation `__ for more. .. _visualization.pie: @@ -753,7 +753,7 @@ If you pass values whose sum total is less than 1.0, matplotlib draws a semicirc @savefig series_pie_plot_semi.png series.plot.pie(figsize=(6, 6)) -See the `matplotlib pie documentation `__ for more. +See the `matplotlib pie documentation `__ for more. .. ipython:: python :suppress: @@ -1259,7 +1259,7 @@ tick locator methods, it is useful to call the automatic date tick adjustment from matplotlib for figures whose ticklabels overlap. See the :meth:`autofmt_xdate ` method and the -`matplotlib documentation `__ for more. +`matplotlib documentation `__ for more. Subplots ~~~~~~~~ @@ -1468,7 +1468,7 @@ as seen in the example below. There also exists a helper function ``pandas.plotting.table``, which creates a table from :class:`DataFrame` or :class:`Series`, and adds it to an ``matplotlib.Axes`` instance. This function can accept keywords which the -matplotlib `table `__ has. +matplotlib `table `__ has. .. ipython:: python @@ -1486,7 +1486,7 @@ matplotlib `table `__ for more. +**Note**: You can get table instances on the axes using ``axes.tables`` property for further decorations. See the `matplotlib table documentation `__ for more. .. _visualization.colormaps: @@ -1496,7 +1496,7 @@ Colormaps A potential issue when plotting a large number of columns is that it can be difficult to distinguish some series due to repetition in the default colors. To remedy this, ``DataFrame`` plotting supports the use of the ``colormap`` argument, -which accepts either a Matplotlib `colormap `__ +which accepts either a Matplotlib `colormap `__ or a string that is a name of a colormap registered with Matplotlib. A visualization of the default matplotlib colormaps is available `here `__. diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index fde77844..15eb353e 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -7,7 +7,7 @@ Release Notes ************* This is the list of changes to pandas between each release. For full details, -see the commit logs at http://github.com/pandas-dev/pandas. For install and +see the commit logs at https://github.com/pandas-dev/pandas. For install and upgrade instructions, see :ref:`install`. Version 0.25 diff --git a/pandas/_libs/intervaltree.pxi.in b/pandas/_libs/intervaltree.pxi.in index ac713a92..a683b7ee 100644 --- a/pandas/_libs/intervaltree.pxi.in +++ b/pandas/_libs/intervaltree.pxi.in @@ -21,7 +21,7 @@ cdef class IntervalTree(IntervalMixin): """A centered interval tree Based off the algorithm described on Wikipedia: - http://en.wikipedia.org/wiki/Interval_tree + https://en.wikipedia.org/wiki/Interval_tree we are emulating the IndexEngine interface """ diff --git a/pandas/_libs/src/klib/khash.h b/pandas/_libs/src/klib/khash.h index 77ec519c..5b2d7610 100644 --- a/pandas/_libs/src/klib/khash.h +++ b/pandas/_libs/src/klib/khash.h @@ -53,7 +53,7 @@ int main() { speed for simple keys. Thank Zilong Tan for the suggestion. Reference: - https://github.com/stefanocasazza/ULib - - http://nothings.org/computer/judy/ + - https://nothings.org/computer/judy/ * Allow to optionally use linear probing which usually has better performance for random input. Double hashing is still the default as it diff --git a/pandas/_libs/src/skiplist.h b/pandas/_libs/src/skiplist.h index 60c1a567..1679ced1 100644 --- a/pandas/_libs/src/skiplist.h +++ b/pandas/_libs/src/skiplist.h @@ -10,7 +10,7 @@ Flexibly-sized, index-able skiplist data structure for maintaining a sorted list of values Port of Wes McKinney's Cython version of Raymond Hettinger's original pure -Python recipe (http://rhettinger.wordpress.com/2010/02/06/lost-knowledge/) +Python recipe (https://rhettinger.wordpress.com/2010/02/06/lost-knowledge/) */ #ifndef PANDAS__LIBS_SRC_SKIPLIST_H_ diff --git a/pandas/_libs/src/ujson/lib/ultrajson.h b/pandas/_libs/src/ujson/lib/ultrajson.h index 0470fef4..fd88c77e 100644 --- a/pandas/_libs/src/ujson/lib/ultrajson.h +++ b/pandas/_libs/src/ujson/lib/ultrajson.h @@ -30,7 +30,7 @@ https://github.com/client9/stringencoders Copyright (c) 2007 Nick Galbreath -- nickg [at] modp [dot] com. All rights reserved. Numeric decoder derived from from TCL library -http://www.opensource.apple.com/source/tcl/tcl-14/tcl/license.terms +https://www.opensource.apple.com/source/tcl/tcl-14/tcl/license.terms * Copyright (c) 1988-1993 The Regents of the University of California. * Copyright (c) 1994 Sun Microsystems, Inc. */ diff --git a/pandas/_libs/src/ujson/lib/ultrajsondec.c b/pandas/_libs/src/ujson/lib/ultrajsondec.c index a847b0f5..219e626c 100644 --- a/pandas/_libs/src/ujson/lib/ultrajsondec.c +++ b/pandas/_libs/src/ujson/lib/ultrajsondec.c @@ -33,7 +33,7 @@ Copyright (c) 2007 Nick Galbreath -- nickg [at] modp [dot] com. All rights reserved. Numeric decoder derived from from TCL library -http://www.opensource.apple.com/source/tcl/tcl-14/tcl/license.terms +https://www.opensource.apple.com/source/tcl/tcl-14/tcl/license.terms * Copyright (c) 1988-1993 The Regents of the University of California. * Copyright (c) 1994 Sun Microsystems, Inc. */ diff --git a/pandas/_libs/src/ujson/lib/ultrajsonenc.c b/pandas/_libs/src/ujson/lib/ultrajsonenc.c index 2d6c823a..8d1ba877 100644 --- a/pandas/_libs/src/ujson/lib/ultrajsonenc.c +++ b/pandas/_libs/src/ujson/lib/ultrajsonenc.c @@ -33,7 +33,7 @@ Copyright (c) 2007 Nick Galbreath -- nickg [at] modp [dot] com. All rights reserved. Numeric decoder derived from from TCL library -http://www.opensource.apple.com/source/tcl/tcl-14/tcl/license.terms +https://www.opensource.apple.com/source/tcl/tcl-14/tcl/license.terms * Copyright (c) 1988-1993 The Regents of the University of California. * Copyright (c) 1994 Sun Microsystems, Inc. */ diff --git a/pandas/_libs/src/ujson/python/JSONtoObj.c b/pandas/_libs/src/ujson/python/JSONtoObj.c index 7a2e5a58..7a5c9397 100644 --- a/pandas/_libs/src/ujson/python/JSONtoObj.c +++ b/pandas/_libs/src/ujson/python/JSONtoObj.c @@ -30,7 +30,7 @@ https://github.com/client9/stringencoders Copyright (c) 2007 Nick Galbreath -- nickg [at] modp [dot] com. All rights reserved. Numeric decoder derived from from TCL library -http://www.opensource.apple.com/source/tcl/tcl-14/tcl/license.terms +https://www.opensource.apple.com/source/tcl/tcl-14/tcl/license.terms * Copyright (c) 1988-1993 The Regents of the University of California. * Copyright (c) 1994 Sun Microsystems, Inc. */ diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c index 92644021..2890b224 100644 --- a/pandas/_libs/src/ujson/python/objToJSON.c +++ b/pandas/_libs/src/ujson/python/objToJSON.c @@ -30,7 +30,7 @@ https://github.com/client9/stringencoders Copyright (c) 2007 Nick Galbreath -- nickg [at] modp [dot] com. All rights reserved. Numeric decoder derived from from TCL library -http://www.opensource.apple.com/source/tcl/tcl-14/tcl/license.terms +https://www.opensource.apple.com/source/tcl/tcl-14/tcl/license.terms * Copyright (c) 1988-1993 The Regents of the University of California. * Copyright (c) 1994 Sun Microsystems, Inc. */ diff --git a/pandas/_libs/src/ujson/python/ujson.c b/pandas/_libs/src/ujson/python/ujson.c index 39320d73..d1b2c0f1 100644 --- a/pandas/_libs/src/ujson/python/ujson.c +++ b/pandas/_libs/src/ujson/python/ujson.c @@ -30,7 +30,7 @@ https://github.com/client9/stringencoders Copyright (c) 2007 Nick Galbreath -- nickg [at] modp [dot] com. All rights reserved. Numeric decoder derived from from TCL library -http://www.opensource.apple.com/source/tcl/tcl-14/tcl/license.terms +https://www.opensource.apple.com/source/tcl/tcl-14/tcl/license.terms * Copyright (c) 1988-1993 The Regents of the University of California. * Copyright (c) 1994 Sun Microsystems, Inc. */ diff --git a/pandas/_libs/src/ujson/python/version.h b/pandas/_libs/src/ujson/python/version.h index ef6d28bf..3f38642b 100644 --- a/pandas/_libs/src/ujson/python/version.h +++ b/pandas/_libs/src/ujson/python/version.h @@ -30,7 +30,7 @@ https://github.com/client9/stringencoders Copyright (c) 2007 Nick Galbreath -- nickg [at] modp [dot] com. All rights reserved. Numeric decoder derived from from TCL library -http://www.opensource.apple.com/source/tcl/tcl-14/tcl/license.terms +https://www.opensource.apple.com/source/tcl/tcl-14/tcl/license.terms * Copyright (c) 1988-1993 The Regents of the University of California. * Copyright (c) 1994 Sun Microsystems, Inc. */ diff --git a/pandas/_libs/tslibs/c_timestamp.pyx b/pandas/_libs/tslibs/c_timestamp.pyx index 2d3ea3e1..0c325db7 100644 --- a/pandas/_libs/tslibs/c_timestamp.pyx +++ b/pandas/_libs/tslibs/c_timestamp.pyx @@ -111,7 +111,7 @@ cdef class _Timestamp(datetime): def __reduce_ex__(self, protocol): # python 3.6 compat - # http://bugs.python.org/issue28730 + # https://bugs.python.org/issue28730 # now __reduce_ex__ is defined and higher priority than __reduce__ return self.__reduce__() diff --git a/pandas/_libs/tslibs/nattype.pyx b/pandas/_libs/tslibs/nattype.pyx index 7f35a11e..0c0a795e 100644 --- a/pandas/_libs/tslibs/nattype.pyx +++ b/pandas/_libs/tslibs/nattype.pyx @@ -275,7 +275,7 @@ class NaTType(_NaT): def __reduce_ex__(self, protocol): # python 3.6 compat - # http://bugs.python.org/issue28730 + # https://bugs.python.org/issue28730 # now __reduce_ex__ is defined and higher priority than __reduce__ return self.__reduce__() diff --git a/pandas/core/accessor.py b/pandas/core/accessor.py index f84033e9..e8d5720b 100644 --- a/pandas/core/accessor.py +++ b/pandas/core/accessor.py @@ -174,7 +174,7 @@ class CachedAccessor: return self._accessor accessor_obj = self._accessor(obj) # Replace the property with the accessor object. Inspired by: - # http://www.pydanny.com/cached-property.html + # https://www.pydanny.com/cached-property.html # We need to use object.__setattr__ because we overwrite __setattr__ on # NDFrame object.__setattr__(obj, self._name, accessor_obj) diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 5b540dcc..2718bd41 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -1745,7 +1745,7 @@ default 'raise' """ Convert Datetime Array to float64 ndarray of Julian Dates. 0 Julian date is noon January 1, 4713 BC. - http://en.wikipedia.org/wiki/Julian_day + https://en.wikipedia.org/wiki/Julian_day """ # http://mysite.verizon.net/aesir_research/date/jdalg2.htm diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 4c39e18c..66b991f4 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1448,9 +1448,9 @@ class DataFrame(NDFrame): when getting user credentials. .. _local webserver flow: - http://google-auth-oauthlib.readthedocs.io/en/latest/reference/google_auth_oauthlib.flow.html#google_auth_oauthlib.flow.InstalledAppFlow.run_local_server + https://google-auth-oauthlib.readthedocs.io/en/latest/reference/google_auth_oauthlib.flow.html#google_auth_oauthlib.flow.InstalledAppFlow.run_local_server .. _console flow: - http://google-auth-oauthlib.readthedocs.io/en/latest/reference/google_auth_oauthlib.flow.html#google_auth_oauthlib.flow.InstalledAppFlow.run_console + https://google-auth-oauthlib.readthedocs.io/en/latest/reference/google_auth_oauthlib.flow.html#google_auth_oauthlib.flow.InstalledAppFlow.run_console *New in version 0.2.0 of pandas-gbq*. table_schema : list of dicts, optional @@ -3343,7 +3343,7 @@ class DataFrame(NDFrame): * To select strings you must use the ``object`` dtype, but note that this will return *all* object dtype columns * See the `numpy dtype hierarchy - `__ + `__ * To select datetimes, use ``np.datetime64``, ``'datetime'`` or ``'datetime64'`` * To select timedeltas, use ``np.timedelta64``, ``'timedelta'`` or @@ -7601,7 +7601,7 @@ class DataFrame(NDFrame): semi-definite. This could lead to estimate correlations having absolute values which are greater than one, and/or a non-invertible covariance matrix. See `Estimation of covariance matrices - `__ for more details. Examples diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 400d8647..697679b8 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2641,7 +2641,7 @@ class NDFrame(PandasObject, SelectionMixin): References ---------- - .. [1] http://docs.sqlalchemy.org + .. [1] https://docs.sqlalchemy.org .. [2] https://www.python.org/dev/peps/pep-0249/ Examples @@ -2845,7 +2845,7 @@ class NDFrame(PandasObject, SelectionMixin): Notes ----- - See the `xarray docs `__ + See the `xarray docs `__ Examples -------- @@ -6878,9 +6878,9 @@ class NDFrame(PandasObject, SelectionMixin): similar names. These use the actual numerical values of the index. For more information on their behavior, see the `SciPy documentation - `__ + `__ and `SciPy tutorial - `__. + `__. Examples -------- diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py index 11275973..2a088552 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -363,7 +363,7 @@ class EastAsianTextAdjustment(TextAdjustment): self.ambiguous_width = 1 # Definition of East Asian Width - # http://unicode.org/reports/tr11/ + # https://unicode.org/reports/tr11/ # Ambiguous width can be changed by option self._EAW_MAP = {"Na": 1, "N": 1, "W": 2, "F": 2, "H": 1} diff --git a/pandas/io/gbq.py b/pandas/io/gbq.py index d29078ca..8e7e8662 100644 --- a/pandas/io/gbq.py +++ b/pandas/io/gbq.py @@ -58,9 +58,9 @@ def read_gbq( when getting user credentials. .. _local webserver flow: - http://google-auth-oauthlib.readthedocs.io/en/latest/reference/google_auth_oauthlib.flow.html#google_auth_oauthlib.flow.InstalledAppFlow.run_local_server + https://google-auth-oauthlib.readthedocs.io/en/latest/reference/google_auth_oauthlib.flow.html#google_auth_oauthlib.flow.InstalledAppFlow.run_local_server .. _console flow: - http://google-auth-oauthlib.readthedocs.io/en/latest/reference/google_auth_oauthlib.flow.html#google_auth_oauthlib.flow.InstalledAppFlow.run_console + https://google-auth-oauthlib.readthedocs.io/en/latest/reference/google_auth_oauthlib.flow.html#google_auth_oauthlib.flow.InstalledAppFlow.run_console *New in version 0.2.0 of pandas-gbq*. dialect : str, default 'legacy' diff --git a/pandas/io/html.py b/pandas/io/html.py index 12c8ec42..1b6f7492 100644 --- a/pandas/io/html.py +++ b/pandas/io/html.py @@ -983,7 +983,7 @@ def read_html( is a valid attribute dictionary because the 'id' HTML tag attribute is a valid HTML attribute for *any* HTML tag as per `this document - `__. :: + `__. :: attrs = {'asdf': 'table'} @@ -992,7 +992,7 @@ def read_html( table attributes can be found `here `__. A working draft of the HTML 5 spec can be found `here - `__. It contains the + `__. It contains the latest information on table attributes for the modern web. parse_dates : bool, optional diff --git a/pandas/io/json/_table_schema.py b/pandas/io/json/_table_schema.py index 1e7cd54d..bcfcedcd 100644 --- a/pandas/io/json/_table_schema.py +++ b/pandas/io/json/_table_schema.py @@ -1,7 +1,7 @@ """ Table Schema builders -http://specs.frictionlessdata.io/json-table-schema/ +https://specs.frictionlessdata.io/json-table-schema/ """ import warnings diff --git a/pandas/io/stata.py b/pandas/io/stata.py index b317f3d8..6c374ec3 100644 --- a/pandas/io/stata.py +++ b/pandas/io/stata.py @@ -7,7 +7,7 @@ project who also developed the StataWriter and was finally added to pandas in a once again improved version. You can find more information on http://presbrey.mit.edu/PyDTA and -http://www.statsmodels.org/devel/ +https://www.statsmodels.org/devel/ """ from collections import OrderedDict @@ -248,7 +248,7 @@ stata_epoch = datetime.datetime(1960, 1, 1) def _stata_elapsed_date_to_datetime_vec(dates, fmt): """ - Convert from SIF to datetime. http://www.stata.com/help.cgi?datetime + Convert from SIF to datetime. https://www.stata.com/help.cgi?datetime Parameters ---------- @@ -413,7 +413,7 @@ def _stata_elapsed_date_to_datetime_vec(dates, fmt): def _datetime_to_stata_elapsed_vec(dates, fmt): """ - Convert from datetime to SIF. http://www.stata.com/help.cgi?datetime + Convert from datetime to SIF. https://www.stata.com/help.cgi?datetime Parameters ---------- @@ -788,7 +788,7 @@ class StataMissingValue: Notes ----- - More information: + More information: Integer missing values make the code '.', '.a', ..., '.z' to the ranges 101 ... 127 (for int8), 32741 ... 32767 (for int16) and 2147483621 ... diff --git a/pandas/plotting/_misc.py b/pandas/plotting/_misc.py index efe88d6b..771a5cbf 100644 --- a/pandas/plotting/_misc.py +++ b/pandas/plotting/_misc.py @@ -154,7 +154,7 @@ def radviz(frame, class_column, ax=None, color=None, colormap=None, **kwds): influence of all dimensions. More info available at the `original article - `_ + `_ describing RadViz. Parameters diff --git a/pandas/tests/indexes/multi/test_analytics.py b/pandas/tests/indexes/multi/test_analytics.py index 36152bc4..7c43a13c 100644 --- a/pandas/tests/indexes/multi/test_analytics.py +++ b/pandas/tests/indexes/multi/test_analytics.py @@ -326,7 +326,7 @@ def test_map_dictlike(idx, mapper): ) def test_numpy_ufuncs(idx, func): # test ufuncs of numpy. see: - # http://docs.scipy.org/doc/numpy/reference/ufuncs.html + # https://docs.scipy.org/doc/numpy/reference/ufuncs.html if _np_version_under1p17: expected_exception = AttributeError diff --git a/pandas/tests/indexes/test_numpy_compat.py b/pandas/tests/indexes/test_numpy_compat.py index f9ca1bca..1d56a9c1 100644 --- a/pandas/tests/indexes/test_numpy_compat.py +++ b/pandas/tests/indexes/test_numpy_compat.py @@ -44,7 +44,7 @@ from pandas.util import testing as tm ) def test_numpy_ufuncs_basic(indices, func): # test ufuncs of numpy, see: - # http://docs.scipy.org/doc/numpy/reference/ufuncs.html + # https://docs.scipy.org/doc/numpy/reference/ufuncs.html idx = indices if isinstance(idx, DatetimeIndexOpsMixin): @@ -75,7 +75,7 @@ def test_numpy_ufuncs_basic(indices, func): ) def test_numpy_ufuncs_other(indices, func): # test ufuncs of numpy, see: - # http://docs.scipy.org/doc/numpy/reference/ufuncs.html + # https://docs.scipy.org/doc/numpy/reference/ufuncs.html idx = indices if isinstance(idx, (DatetimeIndex, TimedeltaIndex)): diff --git a/pandas/tests/tseries/offsets/test_fiscal.py b/pandas/tests/tseries/offsets/test_fiscal.py index 8b1aaafb..e90aad42 100644 --- a/pandas/tests/tseries/offsets/test_fiscal.py +++ b/pandas/tests/tseries/offsets/test_fiscal.py @@ -92,7 +92,7 @@ class TestFY5253LastOfMonth(Base): on_offset_cases = [ # From Wikipedia (see: - # http://en.wikipedia.org/wiki/4%E2%80%934%E2%80%935_calendar#Last_Saturday_of_the_month_at_fiscal_year_end) + # https://en.wikipedia.org/wiki/4%E2%80%934%E2%80%935_calendar#Last_Saturday_of_the_month_at_fiscal_year_end) (offset_lom_sat_aug, datetime(2006, 8, 26), True), (offset_lom_sat_aug, datetime(2007, 8, 25), True), (offset_lom_sat_aug, datetime(2008, 8, 30), True), @@ -205,7 +205,7 @@ class TestFY5253NearestEndMonth(Base): on_offset_cases = [ # From Wikipedia (see: - # http://en.wikipedia.org/wiki/4%E2%80%934%E2%80%935_calendar + # https://en.wikipedia.org/wiki/4%E2%80%934%E2%80%935_calendar # #Saturday_nearest_the_end_of_month) # 2006-09-02 2006 September 2 # 2007-09-01 2007 September 1 diff --git a/pandas/tseries/offsets.py b/pandas/tseries/offsets.py index ac3e92c7..9189cdf9 100644 --- a/pandas/tseries/offsets.py +++ b/pandas/tseries/offsets.py @@ -2049,7 +2049,7 @@ class FY5253(DateOffset): such as retail, manufacturing and parking industry. For more information see: - http://en.wikipedia.org/wiki/4-4-5_calendar + https://en.wikipedia.org/wiki/4-4-5_calendar The year may either: - end on the last X day of the Y month. @@ -2252,7 +2252,7 @@ class FY5253Quarter(DateOffset): such as retail, manufacturing and parking industry. For more information see: - http://en.wikipedia.org/wiki/4-4-5_calendar + https://en.wikipedia.org/wiki/4-4-5_calendar The year may either: - end on the last X day of the Y month. diff --git a/pandas/util/_decorators.py b/pandas/util/_decorators.py index 5c7d481f..c5a3a43e 100644 --- a/pandas/util/_decorators.py +++ b/pandas/util/_decorators.py @@ -241,7 +241,7 @@ def rewrite_axis_style_signature( # Substitution and Appender are derived from matplotlib.docstring (1.1.0) -# module http://matplotlib.org/users/license.html +# module https://matplotlib.org/users/license.html class Substitution: diff --git a/setup.py b/setup.py index 0e2e330f..9c8d772e 100755 --- a/setup.py +++ b/setup.py @@ -58,7 +58,7 @@ except ImportError: # The import of Extension must be after the import of Cython, otherwise # we do not get the appropriately patched class. -# See https://cython.readthedocs.io/en/latest/src/reference/compilation.html +# See https://cython.readthedocs.io/en/latest/src/userguide/source_files_and_compilation.html from distutils.extension import Extension # noqa:E402 from distutils.command.build import build # noqa:E402 diff --git a/versioneer.py b/versioneer.py index 24d8105c..18792f4d 100644 --- a/versioneer.py +++ b/versioneer.py @@ -1678,7 +1678,7 @@ def do_setup(): except EnvironmentError: pass # That doesn't cover everything MANIFEST.in can do - # (http://docs.python.org/2/distutils/sourcedist.html#commands), so + # (https://docs.python.org/2/distutils/sourcedist.html#commands), so # it might give some false negatives. Appending redundant 'include' # lines is safe, though. if "versioneer.py" not in simple_includes: -- 2.30.2