In [1]: import numpy as np In [2]: import pandas as pd In [3]: df =pd.DataFrame(np.arange(9).reshape(3,3)) In [4]: df Out[4]: 0 1 2 0 0 1 2 1 3 4 5 2 6 7 8 In [5]: df.shape Out[5]: (3, 3)
In [6]: len(df.index)
Out[6]: (3, 3)
No comments:
Post a Comment