Amerred
0
Q:

python pandas

If you use Anaconda then it is preinstalled
otherwise: pip install pandas

import pandas as pd
pd.__version__
4
# pip install pandas 

import pandas as pd

#pandas is a Python library 
#It's a fast, flexible, and expressive data structures
#designed to make work with structured (tabular, multidimensional, potentially heterogeneous) and time series data.
2
df = pd.DataFrame(np.random.randn(1000, 4), index=ts.index,
   .....:                   columns=['A', 'B', 'C', 'D'])
   .....: 

In [137]: df = df.cumsum()

In [138]: plt.figure()
Out[138]: <Figure size 640x480 with 0 Axes>

In [139]: df.plot()
Out[139]: <matplotlib.axes._subplots.AxesSubplot at 0x7f53723daa10>

In [140]: plt.legend(loc='best')
Out[140]: <matplotlib.legend.Legend at 0x7f5369d93dd0>
2
import pandas
2
Pandas DataFrames make manipulating your data easy, from selecting or replacing columns and indices to reshaping your data.
-1

New to Communities?

Join the community