Skip to main content

Modin: Pandas on Ray - Make your pandas code run faster with a single line of code change.

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

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

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

Uploaded Source

Built Distributions

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

modin-0.2.4-py3-none-any.whl (131.0 kB view details)

Uploaded Python 3

modin-0.2.4-py2-none-any.whl (129.2 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: modin-0.2.4.tar.gz
  • Upload date:
  • Size: 110.1 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.4.tar.gz
Algorithm Hash digest
SHA256 6fdc734aa56aa7e9fd4bf958900a7706e6269e759397e98fe5e138308e4e9cc0
MD5 ce03217bfb36cc8307e0931ed2a2ae58
BLAKE2b-256 f1743cc92359f8618f48a12d51204d2e93450d5c028aa7f5031ff683da65fd81

See more details on using hashes here.

File details

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

File metadata

  • Download URL: modin-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 131.0 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 817bf52f77892277b1c14592a08ebdd95b8de60b73cf67c7dff094bcbc1c1629
MD5 72a5761608bf7f609c41d5d25fe4e307
BLAKE2b-256 1e73c5e428e7d58cbc6243c1acb1329103c8138e8471b6c92e4451434e7bb753

See more details on using hashes here.

File details

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

File metadata

  • Download URL: modin-0.2.4-py2-none-any.whl
  • Upload date:
  • Size: 129.2 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.4-py2-none-any.whl
Algorithm Hash digest
SHA256 9507cc78b99a9d8e6ff1d49f07f43b68e2d376acfa01bca8659f75f225e48d3f
MD5 d1bc43d5850dbc27be3771809d38abd7
BLAKE2b-256 f9ee5b0e73dddcbaed1f7585838c2d5092b0e7997f6fd0eb08b8d475a5326cb7

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