Skip to main content

A simple utility to reduce memory usage of pandas DataFrames

Project description

pip install reduce-mem-usage

import pandas as pd from reduce_mem_usage import reduce_mem_usage

Example: load a DataFrame

df = pd.read_csv("data.csv")

Reduce memory usage

df = reduce_mem_usage(df)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reduce_mem_usage-0.1.0.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reduce_mem_usage-0.1.0-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file reduce_mem_usage-0.1.0.tar.gz.

File metadata

  • Download URL: reduce_mem_usage-0.1.0.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for reduce_mem_usage-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f132ce5f8f0ce29a9d8d631de3c6ff1489d2a430e0d7c34505e8eced9d507d55
MD5 79a368443bdb6095524baf839e209087
BLAKE2b-256 e185b431413bb5c68cb37d8aefaec966f66e558a88a2c1ecc4beb9c4b40524f9

See more details on using hashes here.

File details

Details for the file reduce_mem_usage-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for reduce_mem_usage-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5f5e965b1dce2158c4f1e7addf8845e020394c559f41474228b886ce78f758b
MD5 b87be134c15918b2d87683e250ca9c83
BLAKE2b-256 c63b85104b750ed8720306a5e0fd5480c6672eb48950d8443e500f60f403ff9f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page