Skip to content

Instantly share code, notes, and snippets.

@BexTuychiev
Created September 16, 2021 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BexTuychiev/bc56f1351d959b6973de40b8a8b523f8 to your computer and use it in GitHub Desktop.
Save BexTuychiev/bc56f1351d959b6973de40b8a8b523f8 to your computer and use it in GitHub Desktop.
massive_df = pd.concat([tps.drop(["f1000", "f1001"], axis=1)] * 10)
>>> massive_df.shape
(9579190, 120)
memory_usage = massive_df.memory_usage(deep=True)
memory_usage_in_mbs = np.sum(memory_usage / 1024 ** 2)
>>> memory_usage_in_mbs
8742.604093551636
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment