pandas (software)
pandas
|
|
---|---|
![]() |
|
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
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
df = pd.DataFrame(np.random.rand(10, 5), columns=list('ABCDE'))
df.plot.bar(stacked=True)
plt.show()
Box plot
df = pd.DataFrame(np.random.rand(7, 5), columns=list('ABCDE'))
df.plot.box()
plt.show()
Histogram
data = pd.Series(np.random.normal(size=100))
data.hist(grid=False)
plt.show()
See also
Web links
- Official website
- pandas - a library for tabular data tutorial in German
- Google Colaboratory: Quick Introduction to pandas. In: colab.research.google.com. Retrieved October 29, 2018 .
Individual evidence
- ↑ Release 1.1.0 . July 28, 2020 (accessed July 29, 2020).
- ↑ Add pandas python3statement / python3statement.github.io ( English ) Accessed July 7, 2018.
- ↑ Moving to require Python 3 , from python3statement.org, accessed October 17, 2018