Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dataframe memory usage

# Returns the total memory usage of the DataFrame.
df.info(memory_usage="deep")

# Returns the memory usage per column of the DataFrame (in Bytes).
df.memory_usage(deep=True)
 
PREVIOUS NEXT
Tagged: #dataframe #memory #usage
ADD COMMENT
Topic
Name
9+7 =