Pandas > Print dataframe info

Name
Code
Output
dataframe = pandas.DataFrame(numpy.random.randint(0,10,size=(5, 3)), columns=['C1','C2','C3'])
print ("dataframe")
print (dataframe)
print ("dataframe info")
print (dataframe.info())
dataframe
   C1  C2  C3
0   3   5   5
1   0   8   2
2   8   1   1
3   9   5   4
4   4   7   0
dataframe info
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 5 entries, 0 to 4
Data columns (total 3 columns):
C1    5 non-null int64
C2    5 non-null int64
C3    5 non-null int64
dtypes: int64(3)
memory usage: 200.0 bytes
None