Skip to main content

Modin: Make your pandas code run faster by changing one line of code.

Project description

Scale your pandas workflows by changing one line of code

To use Modin, replace the pandas import:

# import pandas as pd
import modin.pandas as pd

Installation

Modin can be installed from PyPI:

pip install modin

Full Documentation

Visit the complete documentation on readthedocs: http://modin.readthedocs.io

Scale your pandas workflow by changing a single line of code.

Modin uses Ray to provide an effortless way to speed up your pandas notebooks, scripts, and libraries. Unlike other distributed DataFrame libraries, Modin provides seamless integration and compatibility with existing pandas code. Even using the DataFrame constructor is identical.

import modin.pandas as pd
import numpy as np

frame_data = np.random.randint(0, 100, size=(2**10, 2**8))
df = pd.DataFrame(frame_data)

To use Modin, you do not need to know how many cores your system has and you do not need to specify how to distribute the data. In fact, you can continue using your previous pandas notebooks while experiencing a considerable speedup from Modin, even on a single machine. Once you’ve changed your import statement, you’re ready to use Modin just like you would pandas.

Faster pandas, even on your laptop

The modin.pandas DataFrame is an extremely light-weight parallel DataFrame. Modin transparently distributes the data and computation so that all you need to do is continue using the pandas API as you were before installing Modin. Unlike other parallel DataFrame systems, Modin is an extremely light-weight, robust DataFrame. Because it is so light-weight, Modin provides speed-ups of up to 4x on a laptop with 4 physical cores.

In pandas, you are only able to use one core at a time when you are doing computation of any kind. With Modin, you are able to use all of the CPU cores on your machine. Even in read_csv, we see large gains by efficiently distributing the work across your entire machine.

import modin.pandas as pd

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

Modin is a DataFrame designed for datasets from 1KB to 1TB+

We have focused heavily on bridging the solutions between DataFrames for small data (e.g. pandas) and large data. Often data scientists require different tools for doing the same thing on different sizes of data. The DataFrame solutions that exist for 1KB do not scale to 1TB+, and the overheads of the solutions for 1TB+ are too costly for datasets in the 1KB range. With Modin, because of its light-weight, robust, and scalable nature, you get a fast DataFrame at small and large data. With preliminary cluster and out of core support, Modin is a DataFrame library with great single-node performance and high scalability in a cluster.

modin.pandas is currently under active development. Requests and contributions are welcome!

More information and Getting Involved

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

modin-0.5.4.tar.gz (193.7 kB view details)

Uploaded Source

Built Distributions

modin-0.5.4-py3-none-any.whl (228.7 kB view details)

Uploaded Python 3

modin-0.5.4-py2-none-any.whl (228.7 kB view details)

Uploaded Python 2

File details

Details for the file modin-0.5.4.tar.gz.

File metadata

  • Download URL: modin-0.5.4.tar.gz
  • Upload date:
  • Size: 193.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for modin-0.5.4.tar.gz
Algorithm Hash digest
SHA256 0934030da647686ca3b6cd32de123fbdbfa66536ae243df05f19224cea1d15ec
MD5 63b383e66a4461ad32742cfb04f42020
BLAKE2b-256 0b954558453429c71c689a36be58152e963f733040940e5245d82b8ae3533642

See more details on using hashes here.

File details

Details for the file modin-0.5.4-py3-none-any.whl.

File metadata

  • Download URL: modin-0.5.4-py3-none-any.whl
  • Upload date:
  • Size: 228.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for modin-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 973db0c008f319156627dc1a75523be3f45575da3230f38ff7e0ecf9371267a5
MD5 01006a7a5fdcba380c5eda504b75f2e7
BLAKE2b-256 c92eca4b58c6b9cc14304fe2d6dd806e9c823f40fca3505da9627f7a9662bb2f

See more details on using hashes here.

File details

Details for the file modin-0.5.4-py2-none-any.whl.

File metadata

  • Download URL: modin-0.5.4-py2-none-any.whl
  • Upload date:
  • Size: 228.7 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for modin-0.5.4-py2-none-any.whl
Algorithm Hash digest
SHA256 94097dfa43234bfbaafac5c7be90432afc85094ad01a7eb088eebf8ff5461e31
MD5 1488722a09fc3471149eb70ed9af9f14
BLAKE2b-256 d43591f064d564fad5be9d112c97acb17cd800519a260eaa16b4fdca6f17e9e9

See more details on using hashes here.

Supported by

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