From cb9e9c742aaef21bc202c19f764526e75a05139c Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Wed, 26 Aug 2020 22:34:50 +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 | 2 +- asv_bench/benchmarks/pandas_vb_common.py | 2 +- doc/cheatsheet/README.txt | 2 +- doc/source/conf.py | 6 +- doc/source/development/contributing.rst | 36 +++++------ .../development/contributing_docstring.rst | 4 +- doc/source/development/extending.rst | 2 +- doc/source/development/maintaining.rst | 4 +- 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/install.rst | 62 +++++++++---------- doc/source/getting_started/tutorials.rst | 40 ++++++------ doc/source/user_guide/computation.rst | 6 +- doc/source/user_guide/enhancingperf.rst | 10 +-- doc/source/user_guide/io.rst | 6 +- 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 +- web/pandas/about/citing.md | 2 +- web/pandas/about/index.md | 4 +- web/pandas/community/coc.md | 6 +- web/pandas/community/ecosystem.md | 2 +- web/pandas/index.html | 2 +- 58 files changed, 179 insertions(+), 179 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 7924ffaf..42cb82df 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -3,4 +3,4 @@ Release Notes The list of changes to Pandas between each release can be found [here](https://pandas.pydata.org/pandas-docs/stable/whatsnew/index.html). For full -details, see the commit logs at http://github.com/pandas-dev/pandas. +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 6da2b227..fd1770df 100644 --- a/asv_bench/benchmarks/pandas_vb_common.py +++ b/asv_bench/benchmarks/pandas_vb_common.py @@ -56,7 +56,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 f16617c7..b8c89381 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -632,10 +632,10 @@ def linkcode_resolve(domain, info): fn = os.path.relpath(fn, start=os.path.dirname(pandas.__file__)) if "+" in pandas.__version__: - return f"http://github.com/pandas-dev/pandas/blob/master/pandas/{fn}{linespec}" + return f"https://github.com/pandas-dev/pandas/blob/master/pandas/{fn}{linespec}" else: return ( - f"http://github.com/pandas-dev/pandas/blob/" + f"https://github.com/pandas-dev/pandas/blob/" f"v{pandas.__version__}/pandas/{fn}{linespec}" ) @@ -702,7 +702,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 c7a984c6..0e773846 100644 --- a/doc/source/development/contributing.rst +++ b/doc/source/development/contributing.rst @@ -56,7 +56,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 @@ -67,7 +67,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 @@ -104,19 +104,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. @@ -249,7 +249,7 @@ To return to your root environment:: conda deactivate -See the full conda docs `here `__. +See the full conda docs `here `__. .. _contributing.pip: @@ -354,7 +354,7 @@ 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 complex changes to the documentation as well. @@ -379,7 +379,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:: @@ -425,7 +425,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 @@ -609,8 +609,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 @@ -638,7 +638,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. @@ -939,9 +939,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:: @@ -992,7 +992,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 @@ -1225,7 +1225,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. Furthermore one can run diff --git a/doc/source/development/contributing_docstring.rst b/doc/source/development/contributing_docstring.rst index cb32f0e1..649dd37b 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 89d43e8a..270f20e8 100644 --- a/doc/source/development/extending.rst +++ b/doc/source/development/extending.rst @@ -306,7 +306,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/development/maintaining.rst b/doc/source/development/maintaining.rst index 0d1088cc..e65b66fc 100644 --- a/doc/source/development/maintaining.rst +++ b/doc/source/development/maintaining.rst @@ -36,7 +36,7 @@ of what it means to be a maintainer. * Provide experience / wisdom on API design questions to ensure consistency and maintainability * Project organization (run / attend developer meetings, represent pandas) -http://matthewrocklin.com/blog/2019/05/18/maintainer may be interesting background +https://matthewrocklin.com/blog/2019/05/18/maintainer may be interesting background reading. .. _maintaining.triage: @@ -78,7 +78,7 @@ Here's a typical workflow for triaging a newly opened issue. 4. **Is the issue minimal and reproducible**? For bug reports, we ask that the reporter provide a minimal reproducible - example. See http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports + example. See https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports for a good explanation. If the example is not reproducible, or if it's *clearly* not minimal, feel free to ask the reporter if they can provide and example or simplify the provided one. Do acknowledge that writing diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index b1de406b..618d47c5 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -293,8 +293,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 7280b549..717f7e96 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 31cb76ee..06f9e454 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 93e60ff9..5cf597c1 100644 --- a/doc/source/getting_started/dsintro.rst +++ b/doc/source/getting_started/dsintro.rst @@ -610,7 +610,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/install.rst b/doc/source/getting_started/install.rst index 8f5900a2..ba5a7d92 100644 --- a/doc/source/getting_started/install.rst +++ b/doc/source/getting_started/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 -`__ >= 5.0.1 and `Hypothesis +`__ >= 5.0.1 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: @@ -303,6 +303,6 @@ 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 .. _tabulate: https://github.com/astanin/python-tabulate diff --git a/doc/source/getting_started/tutorials.rst b/doc/source/getting_started/tutorials.rst index 1ed0e8f6..434d7914 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/user_guide/computation.rst b/doc/source/user_guide/computation.rst index a2150c20..cdb08378 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 @@ -346,7 +346,7 @@ if installed as an optional dependency. The apply aggregation can be executed us ``engine='numba'`` and ``engine_kwargs`` arguments (``raw`` must also be set to ``True``). Numba will be applied in potentially two routines: -1. If ``func`` is a standard Python function, the engine will `JIT `__ +1. If ``func`` is a standard Python function, the engine will `JIT `__ the passed function. ``func`` can also be a JITed function in which case the engine will not JIT the function again. 2. The engine will JIT the for loop where the apply function is applied to each window. @@ -1063,5 +1063,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 2df5b9d8..10dce7ee 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 a8d84469..b9cc4e50 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -4260,11 +4260,11 @@ 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. Support for alternative blosc compressors: - - `blosc:blosclz `_ This is the + - `blosc:blosclz `_ This is the default compressor for ``blosc`` - `blosc:lz4 `_: @@ -5018,7 +5018,7 @@ Possible values are: like *Presto* and *Redshift*, but has worse performance for traditional SQL backend if the table contains many columns. For more information check the SQLAlchemy `documention - `__. + `__. - callable with signature ``(pd_table, conn, keys, data_iter)``: This can be used to implement a more performant insertion method based on specific backend dialect features. diff --git a/doc/source/user_guide/missing_data.rst b/doc/source/user_guide/missing_data.rst index 85f063f1..2e68a059 100644 --- a/doc/source/user_guide/missing_data.rst +++ b/doc/source/user_guide/missing_data.rst @@ -467,9 +467,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 02550eab..1f2f8818 100644 --- a/doc/source/user_guide/style.ipynb +++ b/doc/source/user_guide/style.ipynb @@ -6,7 +6,7 @@ "source": [ "# Styling\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/user_guide/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", @@ -462,7 +462,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 91138743..f6a56610 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. @@ -591,7 +591,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: @@ -651,7 +651,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: @@ -749,7 +749,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: @@ -1268,7 +1268,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 ~~~~~~~~ @@ -1477,7 +1477,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 @@ -1495,7 +1495,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: @@ -1505,7 +1505,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 dec0807b..6c91f7cb 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 1.0 diff --git a/pandas/_libs/intervaltree.pxi.in b/pandas/_libs/intervaltree.pxi.in index d09413bf..a8728050 100644 --- a/pandas/_libs/intervaltree.pxi.in +++ b/pandas/_libs/intervaltree.pxi.in @@ -26,7 +26,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 bcf6350a..916838d1 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 8d04874b..b40ac985 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 4eb18ee1..36eb170f 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 51c9b924..065e3b2c 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 b2fc7884..3db10237 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 5cb782a0..8612a471 100644 --- a/pandas/_libs/src/ujson/python/objToJSON.c +++ b/pandas/_libs/src/ujson/python/objToJSON.c @@ -31,7 +31,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/ujson.c b/pandas/_libs/src/ujson/python/ujson.c index 4a88fb7a..a40f2709 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 62a039d1..3c30460a 100644 --- a/pandas/_libs/tslibs/c_timestamp.pyx +++ b/pandas/_libs/tslibs/c_timestamp.pyx @@ -124,7 +124,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 fe447f57..ff520d3e 100644 --- a/pandas/_libs/tslibs/nattype.pyx +++ b/pandas/_libs/tslibs/nattype.pyx @@ -325,7 +325,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 3f1c7b1c..a04e9c3e 100644 --- a/pandas/core/accessor.py +++ b/pandas/core/accessor.py @@ -186,7 +186,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 b19bd224..e021a0d5 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -1642,7 +1642,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 94f70f7e..68a3f6d3 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1488,9 +1488,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 @@ -3374,7 +3374,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 @@ -7552,7 +7552,7 @@ Wild 185.0 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 3e86e986..671657a9 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2592,7 +2592,7 @@ class NDFrame(PandasObject, SelectionMixin, indexing.IndexingMixin): References ---------- - .. [1] http://docs.sqlalchemy.org + .. [1] https://docs.sqlalchemy.org .. [2] https://www.python.org/dev/peps/pep-0249/ Examples @@ -2801,7 +2801,7 @@ class NDFrame(PandasObject, SelectionMixin, indexing.IndexingMixin): Notes ----- - See the `xarray docs `__ + See the `xarray docs `__ Examples -------- @@ -6830,9 +6830,9 @@ class NDFrame(PandasObject, SelectionMixin, indexing.IndexingMixin): 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 9578bb9f..3b2d5c7c 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -410,7 +410,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 69ebc470..405bf27c 100644 --- a/pandas/io/gbq.py +++ b/pandas/io/gbq.py @@ -64,9 +64,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 04f9f317..3da848dc 100644 --- a/pandas/io/html.py +++ b/pandas/io/html.py @@ -987,7 +987,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'} @@ -996,7 +996,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 5f23b95c..4e42533c 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 77368c0b..c4698019 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 abc import datetime @@ -207,7 +207,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 ---------- @@ -372,7 +372,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 ---------- @@ -733,7 +733,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 ccd42d39..1369adcd 100644 --- a/pandas/plotting/_misc.py +++ b/pandas/plotting/_misc.py @@ -149,7 +149,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 f04776e5..628adad4 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 58355665..92dde565 100644 --- a/pandas/tests/indexes/test_numpy_compat.py +++ b/pandas/tests/indexes/test_numpy_compat.py @@ -46,7 +46,7 @@ from pandas.core.indexes.datetimelike import DatetimeIndexOpsMixin ) 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): @@ -77,7 +77,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 56861195..f0ce104a 100644 --- a/pandas/tests/tseries/offsets/test_fiscal.py +++ b/pandas/tests/tseries/offsets/test_fiscal.py @@ -95,7 +95,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), @@ -208,7 +208,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 8bb98a27..7219d958 100644 --- a/pandas/tseries/offsets.py +++ b/pandas/tseries/offsets.py @@ -2062,7 +2062,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: @@ -2270,7 +2270,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: diff --git a/pandas/util/_decorators.py b/pandas/util/_decorators.py index d10d3a1f..0aab5a9c 100644 --- a/pandas/util/_decorators.py +++ b/pandas/util/_decorators.py @@ -248,7 +248,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 13b1f712..82ba495a 100755 --- a/setup.py +++ b/setup.py @@ -60,7 +60,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 isort:skip from distutils.command.build import build # noqa: E402 isort:skip diff --git a/versioneer.py b/versioneer.py index 8a4710da..5882349f 100644 --- a/versioneer.py +++ b/versioneer.py @@ -1677,7 +1677,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: diff --git a/web/pandas/about/citing.md b/web/pandas/about/citing.md index 5cd31d87..d5cb64e5 100644 --- a/web/pandas/about/citing.md +++ b/web/pandas/about/citing.md @@ -4,7 +4,7 @@ If you use _pandas_ for a scientific publication, we would appreciate citations to one of the following papers: -- [Data structures for statistical computing in python](http://conference.scipy.org/proceedings/scipy2010/pdfs/mckinney.pdf), +- [Data structures for statistical computing in python](https://conference.scipy.org/proceedings/scipy2010/pdfs/mckinney.pdf), McKinney, Proceedings of the 9th Python in Science Conference, Volume 445, 2010. @inproceedings{mckinney2010data, diff --git a/web/pandas/about/index.md b/web/pandas/about/index.md index 9a0a3923..02caaa3b 100644 --- a/web/pandas/about/index.md +++ b/web/pandas/about/index.md @@ -2,8 +2,8 @@ ## History of development -In 2008, _pandas_ development began at [AQR Capital Management](http://www.aqr.com). -By the end of 2009 it had been [open sourced](http://en.wikipedia.org/wiki/Open_source), +In 2008, _pandas_ development began at [AQR Capital Management](https://www.aqr.com). +By the end of 2009 it had been [open sourced](https://en.wikipedia.org/wiki/Open_source), and is actively supported today by a community of like-minded individuals around the world who contribute their valuable time and energy to help make open source _pandas_ possible. Thank you to [all of our contributors](team.html). diff --git a/web/pandas/community/coc.md b/web/pandas/community/coc.md index de0e8120..bf62f4e0 100644 --- a/web/pandas/community/coc.md +++ b/web/pandas/community/coc.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/web/pandas/community/ecosystem.md b/web/pandas/community/ecosystem.md index a707854c..715a84c1 100644 --- a/web/pandas/community/ecosystem.md +++ b/web/pandas/community/ecosystem.md @@ -264,7 +264,7 @@ which pandas excels. ## Out-of-core -### [Blaze](http://blaze.pydata.org/) +### [Blaze](https://blaze.pydata.org/) Blaze provides a standard API for doing computations with various in-memory and on-disk backends: NumPy, Pandas, SQLAlchemy, MongoDB, diff --git a/web/pandas/index.html b/web/pandas/index.html index 5aac5da1..3bac9ca1 100644 --- a/web/pandas/index.html +++ b/web/pandas/index.html @@ -7,7 +7,7 @@

pandas

pandas is a fast, powerful, flexible and easy to use open source data analysis and manipulation tool,
- built on top of the Python programming language. + built on top of the Python programming language.

Install pandas now! -- 2.30.2