df
List the index dtype and columns, non-null values and memory usage of the DataFrame.
df.info()
<class 'pandas.core.frame.DataFrame'> RangeIndex: 6 entries, 0 to 5 Data columns (total 4 columns): # Column Non-Null Count Dtype --- ------ -------------- ----- 0 foo 6 non-null object 1 bar 6 non-null object 2 baz 6 non-null int64 3 qux 6 non-null object dtypes: int64(1), object(3) memory usage: 320.0+ bytes
Memory usage of each column.
df.memory_usage(deep=True)
Index 128 foo 360 bar 348 baz 48 qux 348 dtype: int64