Command
df.memory_usageExplanation
df.memory_usage() returns memory usage of each column.
Examples
Detailed memory usage
df.memory_usage(deep=True)df.memory_usagedf.memory_usage() returns memory usage of each column.
Detailed memory usage
df.memory_usage(deep=True)