In [2]:
df
Out[2]:
foo bar baz qux
0 one A 1 u
1 one B 2 v
2 one C 3 w
3 two A 4 x
4 two B 5 y
5 two C 6 z

List the index dtype and columns, non-null values and memory usage of the DataFrame.

In [3]:
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.

In [4]:
df.memory_usage(deep=True)
Out[4]:
Index    128
foo      360
bar      348
baz       48
qux      348
dtype: int64