python - how to check if my dataframe is out of memery code example Example: python - how to check if my dataframe is out of memery df.memory_usage(deep=True) / 1024 ** 2