diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md index a1fbece3284ec..7dd2e04249492 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 2e6e980242197..bc31d362118b5 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 dcaaea101f4c8..f576e333f9448 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 7924ffaff561f..42cb82dfcf020 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 6da2b2270c04a..fd1770df8e5d3 100644 --- a/asv_bench/benchmarks/pandas_vb_common.py +++ b/asv_bench/benchmarks/pandas_vb_common.py @@ -56,7 +56,7 @@ 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 0eae39f318d23..c57da38b31777 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 7f24d02a496e1..57c1bede98cc1 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -408,7 +408,7 @@ "py": ("https://pylib.readthedocs.io/en/latest/", None), "python": ("https://docs.python.org/3/", None), "scipy": ("https://docs.scipy.org/doc/scipy/reference/", None), - "statsmodels": ("http://www.statsmodels.org/devel/", None), + "statsmodels": ("https://www.statsmodels.org/devel/", None), } # extlinks alias @@ -625,10 +625,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}" ) @@ -695,7 +695,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 b650b2a2cf1fe..9599dc5bd1412 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. @@ -260,7 +260,7 @@ To return to your root environment:: conda deactivate -See the full conda docs `here `__. +See the full conda docs `here `__. .. _contributing.pip: @@ -365,7 +365,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. @@ -390,7 +390,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:: @@ -436,7 +436,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 @@ -620,8 +620,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 @@ -651,7 +651,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. @@ -971,9 +971,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:: @@ -1024,7 +1024,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 @@ -1257,7 +1257,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 cb32f0e1ee475..649dd37b497b2 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 89d43e8a43825..270f20e8118bc 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 0d1088cc8a6ca..e65b66fc243c5 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 90f839897ce4b..fb06ee122ae88 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -303,8 +303,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 f67f46fc2b29b..e1a4cfe49b7d1 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: @@ -517,37 +517,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 fec6bae1e0330..decf12db77af2 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 81a2f0ae7d162..5d7c9e405cfc2 100644 --- a/doc/source/getting_started/dsintro.rst +++ b/doc/source/getting_started/dsintro.rst @@ -609,7 +609,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 b3fd443e662a9..0742505a46849 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: @@ -302,6 +302,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 1ed0e8f635b58..434d791474807 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 aeb32db639ffb..9951642ca98a4 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. @@ -1064,5 +1064,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/cookbook.rst b/doc/source/user_guide/cookbook.rst index f581d183b9413..4afdb14e5c39e 100644 --- a/doc/source/user_guide/cookbook.rst +++ b/doc/source/user_guide/cookbook.rst @@ -927,7 +927,7 @@ CSV The :ref:`CSV ` docs -`read_csv in action `__ +`read_csv in action `__ `appending to a csv `__ @@ -951,7 +951,7 @@ using that handle to read. `__ `Dealing with bad lines -`__ +`__ `Dealing with bad lines II `__ @@ -1082,7 +1082,7 @@ The :ref:`Excel ` docs `__ `Modifying formatting in XlsxWriter output -`__ +`__ .. _cookbook.html: @@ -1103,7 +1103,7 @@ The :ref:`HDFStores ` docs `__ `Managing heterogeneous data using a linked multiple table hierarchy -`__ +`__ `Merging on-disk tables with millions of rows `__ @@ -1236,7 +1236,7 @@ Computation ----------- `Numerical integration (sample-based) of a time series -`__ +`__ Correlation *********** @@ -1284,7 +1284,7 @@ Timedeltas The :ref:`Timedeltas ` docs. `Using timedeltas -`__ +`__ .. ipython:: python diff --git a/doc/source/user_guide/enhancingperf.rst b/doc/source/user_guide/enhancingperf.rst index 2df5b9d82dcc3..10dce7ee801bf 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 e776da016d5d7..2023d8cbecd9f 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -4237,12 +4237,12 @@ control compression: ``complevel`` and ``complib``. - `lzo `_: Fast compression and decompression. - `bzip2 `_: Good compression rates. - - `blosc `_: Fast compression and + - `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 `_: @@ -4996,7 +4996,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 0f55980b3d015..f15a4e0054798 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 02550eab86913..1f2f8818c8458 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 39051440e9d9a..6680ba854cb6f 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: @@ -1267,7 +1267,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 ~~~~~~~~ @@ -1476,7 +1476,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 @@ -1494,7 +1494,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: @@ -1504,7 +1504,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 bc463d0ab22d8..a8bd5c401fa5b 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.1 diff --git a/pandas/_libs/intervaltree.pxi.in b/pandas/_libs/intervaltree.pxi.in index d09413bfa5210..a8728050f8071 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 bcf6350aa9090..916838d1e9584 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 60c1a56727777..1679ced174f29 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 8d04874b4c9bf..b40ac9856d6a6 100644 --- a/pandas/_libs/src/ujson/lib/ultrajson.h +++ b/pandas/_libs/src/ujson/lib/ultrajson.h @@ -30,7 +30,7 @@ Portions of code from MODP_ASCII - Ascii transformations (upper/lower, etc) 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 4eb18ee13d70b..36eb170f8048f 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 51c9b9244ecfc..065e3b2c60cf9 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 b2fc788478864..3db10237b2688 100644 --- a/pandas/_libs/src/ujson/python/JSONtoObj.c +++ b/pandas/_libs/src/ujson/python/JSONtoObj.c @@ -30,7 +30,7 @@ Portions of code from MODP_ASCII - Ascii transformations (upper/lower, etc) 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 c5ac279ed3243..5c8c2ac595ed1 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 4a88fb7a4e849..a40f2709c0c61 100644 --- a/pandas/_libs/src/ujson/python/ujson.c +++ b/pandas/_libs/src/ujson/python/ujson.c @@ -30,7 +30,7 @@ Portions of code from MODP_ASCII - Ascii transformations (upper/lower, etc) 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 ef6d28bf3a1f7..3f38642b6df87 100644 --- a/pandas/_libs/src/ujson/python/version.h +++ b/pandas/_libs/src/ujson/python/version.h @@ -30,7 +30,7 @@ Portions of code from MODP_ASCII - Ascii transformations (upper/lower, etc) 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 ed1df5f4fa595..2c72cec18f096 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 67c0f0cc33ab8..4b53520603301 100644 --- a/pandas/_libs/tslibs/nattype.pyx +++ b/pandas/_libs/tslibs/nattype.pyx @@ -326,7 +326,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 3f1c7b1c049cf..a04e9c3e68310 100644 --- a/pandas/core/accessor.py +++ b/pandas/core/accessor.py @@ -186,7 +186,7 @@ def __get__(self, obj, cls): 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 1988b2e9e33f2..4b6b54cce64ec 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -1637,7 +1637,7 @@ def to_julian_date(self): """ 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 fa9a951d6849c..5ae5a3c4edf92 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1488,9 +1488,9 @@ def to_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*. table_schema : list of dicts, optional @@ -3364,7 +3364,7 @@ def select_dtypes(self, include=None, exclude=None) -> "DataFrame": * 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 @@ -7613,7 +7613,7 @@ def cov(self, min_periods=None) -> "DataFrame": 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 7b216c53c68cf..af80e9954225a 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2513,7 +2513,7 @@ def to_sql( References ---------- - .. [1] http://docs.sqlalchemy.org + .. [1] https://docs.sqlalchemy.org .. [2] https://www.python.org/dev/peps/pep-0249/ Examples @@ -2722,7 +2722,7 @@ def to_xarray(self): Notes ----- - See the `xarray docs `__ + See the `xarray docs `__ Examples -------- @@ -6515,9 +6515,9 @@ def replace( 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 296b305f41dd2..05705af0152ea 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -412,7 +412,7 @@ def __init__(self): 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 69ebc470fba6f..405bf27cac02d 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 75cb0fafaa6b3..c676bfb1f0c74 100644 --- a/pandas/io/html.py +++ b/pandas/io/html.py @@ -986,7 +986,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'} @@ -995,7 +995,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 5f23b95c10f8e..4e42533ca2744 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 cee5f3d280991..ec200a1ad8409 100644 --- a/pandas/io/stata.py +++ b/pandas/io/stata.py @@ -7,7 +7,7 @@ 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 @@ -204,7 +204,7 @@ def read_stata( 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 ---------- @@ -369,7 +369,7 @@ def convert_delta_safe(base, deltas, unit): 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 ---------- @@ -729,7 +729,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 ccd42d3940431..1369adcd80269 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 2db61d4f4b852..e64511efd7ffb 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 583556656ac87..92dde565fd454 100644 --- a/pandas/tests/indexes/test_numpy_compat.py +++ b/pandas/tests/indexes/test_numpy_compat.py @@ -46,7 +46,7 @@ ) 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 5686119593e18..f0ce104a68e29 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 @@ def test_get_year_end(self): 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 220ff241efa0c..e05cce9c49f4b 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 d10d3a1f71fe6..0aab5a9c4113d 100644 --- a/pandas/util/_decorators.py +++ b/pandas/util/_decorators.py @@ -248,7 +248,7 @@ def wrapper(*args, **kwargs) -> Callable[..., Any]: # 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 191fe49d1eb89..450aef1dc057f 100755 --- a/setup.py +++ b/setup.py @@ -60,7 +60,7 @@ def is_platform_mac(): # 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 # noqa 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 8a4710da5958a..5882349f65f0b 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 5cd31d8722b9d..d5cb64e58f0ad 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 9a0a3923a6b82..02caaa3b8c53c 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 de0e8120f7eee..bf62f4e00f847 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 a707854c6ed2c..715a84c1babc6 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 0f4598add4efc..fedb0b0c5f712 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!