pandas 2.0.3


Powerful data structures for data analysis, time series, and statistics

Powerful data structures for data analysis, time series, and statistics

Stars: 39118, Watchers: 39118, Forks: 16498, Open Issues: 3515

The pandas-dev/pandas repo was created 12 years ago and the last code push was an hour ago.
The project is extremely popular with a mindblowing 39118 github stars!

How to Install pandas

You can install pandas using pip

pip install pandas

or add it to a project with poetry

poetry add pandas

Package Details

BSD 3-Clause License Copyright (c) 2008-2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team All rights reserved. Copyright (c) 2011-2023, Open source contributors. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
GitHub Repo


  • Scientific/Engineering
No  pandas  pypi packages just yet.


A list of common pandas errors.

Code Examples

Here are some pandas code examples and snippets.

  • Plot 3 different Pandas Dataframes in the same chart

    import pandas as pd import numpy as np from matplotlib import pyplot as plt #using numpy's randint to generate some data df1 = pd.DataFrame(np.random.randint(0,100,size=(10, 2)), columns=list('XY')) df2 = pd.DataFrame(np.random.randint(0,100,size=(10, 2)), columns=list('XY')) df3 = pd.DataFrame(np.random.randint(0,100,size=(10, 2)), columns=list('XY')) df1.head(), df2.head(), df3.head() ( X Y 0 82 32 1 79 13 2 87 19 3 6 73 4 1 38, X Y 0 47 62 1 41 0 2 98 78 3 63 83 4 31 59, X Y 0 57 25 1 49 27 2 9 29 3 93 75 4 23 80) # Get handle of first figure to pass to other plot() calls as ax ax = df1.
  • Use pandas and matplotlib to produce a chart of natural gas prices

    In this example Python code, we use requests to fetch data from the website and json from the Python standard library to parse the json data. Next, we load the daily prices into a Pandas DataFrame and format the date column and set it as the index. Finally, we use Pandas .plot() to create a chart saving it as a png image.

GitHub Issues

The pandas package has 3515 open issues on GitHub

  • BUG: groupby transform doesn't respect Series index anymore
  • BUG: Incorrect behavior of window aggregation functions on disjoint windows skipping overflowing elements
  • Revert "PERF: nancorr pearson (#42761)"
  • BUG: frame.shift(axis=1) with ArrayManager
  • REGR: Series.fillna(downcast=False)
  • Switch deps to Conda
  • BUG: REGRESSION: DataFrame.corr() floating point inaccuracy
  • BUG: ArrayManager indexing mismatched behavior
  • BUG: add_categories raises if the new category is included in the old
  • BUG: concat with empty dataframe with columns passed and nonempty dataframe coerces dtype to object
  • added staircase entry in Domain Specific and Accessors section of pan…
  • DOC: add staircase to pandas ecosystem page in docs
  • BUG: bootstrap_plot samples without replacement
  • TST: Added test for setitem loc using datetime-like str
  • BUG: read_csv with memory_map=True on BytesIO object fails

See more issues on GitHub

Related Packages & Articles

nlp 0.4.0

HuggingFace/NLP is an open library of NLP datasets.

keras 2.13.1

Keras is a deep learning API written in Python, running on top of the machine learning platform TensorFlow. The core data structures of Keras are layers and models. The philosophy is to keep simple things simple, while allowing the user to be fully in control when they need to (the ultimate control being the easy extensibility of the source code via subclassing).

gensim 4.3.1

Python framework for fast Vector Space Modelling