Skip to content

This project deals with the optimization of pandas dataframe in memory usage

License

Notifications You must be signed in to change notification settings

IlyesBraham/memoframe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPI Latest Release

1. What is it ?

memoframe is a Python package that enables to easily optimize memory consumption of pandas dataframe. If you encounter OOM (Out of Memory) errors or slow downs during data analysis or model training.

2. Where to get the package ?

Binary installers for the latest released version are available at the Python Package Index (PyPI).

# PyPI 
pip install memoframe

3. Features

  • Optimize integer memory usage
  • Optimize float memory usage
  • Optimize object memory usage
  • Get an estimation of the memory usage saved

4. How to use the library

from memoframe import memoframe as mf

# dataframe is a pandas DataFram
optimized_dataframe = mf.downsize_memory(dataframe)

# Estimates memory usage gains
mf.get_opti_info(dataframe)

About

This project deals with the optimization of pandas dataframe in memory usage

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages