Skip to main content

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

Project description

Modin

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 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 1KB and 1TB+.

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

This version

0.2.5

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.2.5.tar.gz (110.8 kB view details)

Uploaded Source

Built Distributions

modin-0.2.5-py3-none-any.whl (133.5 kB view details)

Uploaded Python 3

modin-0.2.5-py2-none-any.whl (131.8 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for modin-0.2.5.tar.gz
Algorithm Hash digest
SHA256 e05f5aa50f39144d5c907fd7214a6c8daac1c34a2061f53bb39e5cc70b7c726f
MD5 da25c71b6aa41dffcf7757c5f44d0fca
BLAKE2b-256 b54c050ae625a1fedc74f6731f0ea4ccb707a6a2f016ec296d667f58b3582f9a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for modin-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4659cbd31b7774a7e499f8a9c155d95297d574bad0c6ca2c22e736f4011af508
MD5 7c0ee6475b895ea596b480e99cb863de
BLAKE2b-256 1cb8fd260fd362969db25b4d5289c7d6426349a7993017e1d4a65b8fffc59887

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for modin-0.2.5-py2-none-any.whl
Algorithm Hash digest
SHA256 0de323e4e0782fa34e60bd56055af4a902066cd5810987946c1e805c44a976b4
MD5 7fd12c7069065756bebd5bab2f9fefc9
BLAKE2b-256 56e6f26fcd281006015aa75a1e5553b1872d6f84a76ef0d36c28a18fbf7460ca

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