# Modin **Repository Path**: sunmingyang1987/Modin ## Basic Information - **Project Name**: Modin - **Description**: Modin使用Ray提供了一种轻松的方式来加速您的Pandas笔记本,脚本和库 - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://www.oschina.net/p/Modin - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-03-05 - **Last Updated**: 2024-06-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
To use Modin, replace the pandas import:
```python # import pandas as pd import modin.pandas as pd ``` ### Installation Modin can be installed from PyPI: ```bash pip install modin ``` If you don't have [Ray](https://github.com/ray-project/ray) or [Dask](https://github.com/dask/dask) installed, you will need to install Modin with one of the targets: ```bash pip install modin[ray] # Install Modin dependencies and Ray to run on Ray pip install modin[dask] # Install Modin dependencies and Dask to run on Dask pip install modin[all] # Install all of the above ``` Modin will automatically detect which engine you have installed and use that for scheduling computation! ### Pandas API Coverage
| pandas Object | Modin's Ray Engine Coverage | Modin's Dask Engine Coverage |
|-------------------|:------------------------------------------------------------------------------------:|:---------------:|
| `pd.DataFrame` | |
|
| `pd.Series` |
|
|
| `pd.read_csv` | ✅ | ✅ |
| `pd.read_table` | ✅ | ✅ |
| `pd.read_parquet` | ✅ | ✅ |
| `pd.read_sql` | ✅ | ✅ |
| `pd.read_feather` | ✅ | ✅ |
| `pd.read_excel` | ✅ | ✅ |
| `pd.read_json` | [✳️](https://github.com/modin-project/modin/issues/554) | [✳️](https://github.com/modin-project/modin/issues/554) |
| `pd.read_
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.
```python
import modin.pandas as pd
df = pd.read_csv("my_dataset.csv")
```
#### Modin is a DataFrame designed for datasets from 1MB 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](https://modin.readthedocs.io/en/latest/using_modin.html#using-modin-on-a-cluster)
and [out of core](https://modin.readthedocs.io/en/latest/out_of_core.html)
support, Modin is a DataFrame library with great single-node performance and high
scalability in a cluster.
#### Modin Architecture
We designed Modin to be modular so we can plug in different components as they develop
and improve:

Visit the [Documentation](https://modin.readthedocs.io/en/latest/developer/architecture.html) for
more information, and checkout [the difference between Modin and Dask!](https://github.com/modin-project/modin/tree/master/docs/modin_vs_dask.md)
**`modin.pandas` is currently under active development. Requests and contributions are welcome!**
### More information and Getting Involved
- [Documentation](https://modin.readthedocs.io/en/latest/)
- Ask questions or participate in discussions on our [Discourse](https://discuss.modin.org)
- Join our mailing list [modin-dev@googlegroups.com](https://groups.google.com/forum/#!forum/modin-dev)
- Submit bug reports to our [GitHub Issues Page](https://github.com/modin-project/modin/issues)
- Contributions are welcome! Open a [pull request](https://github.com/modin-project/modin/pulls)