pandas (software)

from Wikipedia, the free encyclopedia
pandas

Pandas logo.svg
Basic data

developer Wes McKinney
Current  version 1.1.0
( July 28, 2020 )
operating system Platform independent
programming language python
License 3-clause BSD license
pandas.pydata.org

pandas is a program library for the Python programming language that offers tools for data management and analysis. In particular, it contains data structures and operators for accessing numerical tables and time series . pandas is Free Software , published under the 3-Clause BSD License . The name is derived from the English term " panel data ", an econometric term for data sets.

On September 27, 2016, Pandas was added to the list of the Python 3 Declaration and thus committed to supporting Python 2 only until 2020.

Examples

Curves

Pandas lineplot.png
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np

df = pd.DataFrame(np.random.randn(100, 5), columns=list('ABCDE'))
df=df.cumsum() # Return cumulative sum over a DataFrame or Series axis
df.plot()
plt.show()

Bar charts

Pandas bargraf.png
df = pd.DataFrame(np.random.rand(10, 5), columns=list('ABCDE'))
df.plot.bar(stacked=True)
plt.show()

Box plot

Pandas candelstick.png
df = pd.DataFrame(np.random.rand(7, 5), columns=list('ABCDE'))
df.plot.box()
plt.show()

Histogram

Pandas histogram.png
data = pd.Series(np.random.normal(size=100))
data.hist(grid=False)
plt.show()

See also

Web links

Individual evidence

  1. Release 1.1.0 . July 28, 2020 (accessed July 29, 2020).
  2. Add pandas python3statement / python3statement.github.io ( English ) Accessed July 7, 2018.
  3. Moving to require Python 3 , from python3statement.org, accessed October 17, 2018