{"id":13461694,"url":"https://github.com/modin-project/modin","last_synced_at":"2025-05-11T09:09:58.642Z","repository":{"id":37396903,"uuid":"138224079","full_name":"modin-project/modin","owner":"modin-project","description":"Modin: Scale your Pandas workflows by changing a single line of code","archived":false,"fork":false,"pushed_at":"2025-05-10T01:00:57.000Z","size":53496,"stargazers_count":10149,"open_issues_count":695,"forks_count":663,"subscribers_count":114,"default_branch":"main","last_synced_at":"2025-05-11T09:08:45.236Z","etag":null,"topics":["analytics","data-science","dataframe","datascience","distributed","modin","pandas","python","sql"],"latest_commit_sha":null,"homepage":"http://modin.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/modin-project.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing/clone_my_modin.png","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":"docs/supported_apis/dataframe_supported.rst","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-06-21T21:35:05.000Z","updated_at":"2025-05-10T18:31:00.000Z","dependencies_parsed_at":"2022-07-14T06:40:34.164Z","dependency_job_id":"1e198afe-4147-45b3-b141-9575713b49d9","html_url":"https://github.com/modin-project/modin","commit_stats":{"total_commits":2677,"total_committers":145,"mean_commits":18.46206896551724,"dds":0.809114680612626,"last_synced_commit":"74bb6fda985d13b21939135df3db44850a5ade49"},"previous_names":[],"tags_count":97,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modin-project%2Fmodin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modin-project%2Fmodin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modin-project%2Fmodin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modin-project%2Fmodin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/modin-project","download_url":"https://codeload.github.com/modin-project/modin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253540832,"owners_count":21924537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analytics","data-science","dataframe","datascience","distributed","modin","pandas","python","sql"],"created_at":"2024-07-31T11:00:52.903Z","updated_at":"2025-05-11T09:09:58.635Z","avatar_url":"https://github.com/modin-project.png","language":"Python","readme":"\u003cp align=\"center\"\u003e\u003ca href=\"https://modin.readthedocs.io\"\u003e\u003cimg width=77% alt=\"\" src=\"https://github.com/modin-project/modin/raw/7c009c747caa90554607e30b9ac2bd1b190b8c7d/docs/img/MODIN_ver2_hrz.png?raw=true\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003ch2 align=\"center\"\u003eScale your pandas workflows by changing one line of code\u003c/h2\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n| \u003ch3\u003eDev Community \u0026 Support\u003c/h3\u003e | \u003ch3\u003eForums\u003c/h3\u003e | \u003ch3\u003eSocials\u003c/h3\u003e | \u003ch3\u003eDocs\u003c/h3\u003e |\n|:---: | :---: | :---: | :---: |\n| [![Slack](https://img.shields.io/badge/Slack-4A154B?style=for-the-badge\u0026logo=slack\u0026logoColor=white)](https://join.slack.com/t/modin-project/shared_invite/zt-yvk5hr3b-f08p_ulbuRWsAfg9rMY3uA) | [![Stack Overflow](https://img.shields.io/badge/-Stackoverflow-FE7A16?style=for-the-badge\u0026logo=stack-overflow\u0026logoColor=white)](https://stackoverflow.com/questions/tagged/modin) | \u003ca href=\"https://twitter.com/modin_project\"\u003e\u003cimg alt=\"Twitter Follow\" src=\"https://img.shields.io/twitter/follow/modin_project?style=social\" height=28 align=\"center\"\u003e\u003c/a\u003e | \u003ca href=\"https://modin.readthedocs.io/en/latest/?badge=latest\"\u003e\u003cimg alt=\"\" src=\"https://readthedocs.org/projects/modin/badge/?version=latest\" height=28 align=\"center\"\u003e\u003c/a\u003e |\n\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://pepy.tech/project/modin\"\u003e\u003cimg src=\"https://static.pepy.tech/personalized-badge/modin?period=total\u0026units=international_system\u0026left_color=black\u0026right_color=blue\u0026left_text=Downloads\" align=\"center\"\u003e\u003c/a\u003e\n\u003ca href=\"https://codecov.io/gh/modin-project/modin\"\u003e\u003cimg src=\"https://codecov.io/gh/modin-project/modin/branch/main/graph/badge.svg\" align=\"center\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/modin-project/modin/actions/workflows/push-to-main.yml?query=event%3Apush\"\u003e\u003cimg src=\"https://github.com/modin-project/modin/actions/workflows/push-to-main.yml/badge.svg?branch=main\" align=\"center\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/modin-project/modin/actions/workflows/ci.yml?query=event%3Apush\"\u003e\u003cimg src=\"https://github.com/modin-project/modin/actions/workflows/ci.yml/badge.svg?branch=main\" align=\"center\"\u003e\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/modin/\"\u003e\u003cimg src=\"https://badge.fury.io/py/modin.svg\" alt=\"PyPI version\" align=\"center\"\u003e\u003c/a\u003e\n\u003ca href=\"https://modin.org/modin-bench/#/\"\u003e\u003cimg src=\"https://img.shields.io/badge/benchmarked%20by-asv-blue.svg\" align=\"center\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n### What is Modin?\n\nModin is a drop-in replacement for [pandas](https://github.com/pandas-dev/pandas). While pandas is\nsingle-threaded, Modin lets you instantly speed up your workflows by scaling pandas so it uses all of your\ncores. Modin works especially well on larger datasets, where pandas becomes painfully slow or runs\n[out of memory](https://modin.readthedocs.io/en/latest/getting_started/why_modin/out_of_core.html).\nAlso, Modin comes with the [additional APIs](https://modin.readthedocs.io/en/latest/usage_guide/advanced_usage/index.html#additional-apis)\nto improve user experience.\n\nBy simply replacing the import statement, Modin offers users effortless speed and scale for their pandas workflows:\n\n\u003cimg src=\"https://github.com/modin-project/modin/raw/main/docs/img/Import.gif\" style=\"display: block;margin-left: auto;margin-right: auto;\" width=\"100%\"\u003e\u003c/img\u003e\n\nIn the GIFs below, Modin (left) and pandas (right) perform *the same pandas operations* on a 2GB dataset. The only difference between the two notebook examples is the import statement. \n\n\u003ctable class=\"tg\"\u003e\n\u003cthead\u003e\n  \u003ctr\u003e\n    \u003cth class=\"tg-0lax\" style=\"text-align: center;\"\u003e\u003cimg src=\"https://github.com/modin-project/modin/raw/7c009c747caa90554607e30b9ac2bd1b190b8c7d/docs/img/MODIN_ver2_hrz.png?raw=True\" height=\"35px\"\u003e\u003c/th\u003e\n    \u003cth class=\"tg-0lax\" style=\"text-align: center;\"\u003e\u003cimg src=\"https://pandas.pydata.org/static/img/pandas.svg\" height=\"50px\"\u003e\u003c/img\u003e\u003c/th\u003e\n  \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n  \u003ctr\u003e\n    \u003ctd class=\"tg-0lax\"\u003e\u003cimg src=\"https://github.com/modin-project/modin/raw/7c009c747caa90554607e30b9ac2bd1b190b8c7d/docs/img/Modin.gif\"\u003e\u003c/img\u003e\u003c/td\u003e\n    \u003ctd class=\"tg-0lax\"\u003e\u003cimg src=\"https://github.com/modin-project/modin/raw/7c009c747caa90554607e30b9ac2bd1b190b8c7d/docs/img/Pandas.gif\"\u003e\u003c/img\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\nThe charts below show the speedup you get by replacing pandas with Modin based on the examples above. The example notebooks can be found [here](examples/jupyter). To learn more about the speedups you could get with Modin and try out some examples on your own, check out our [10-minute quickstart guide](https://modin.readthedocs.io/en/latest/getting_started/quickstart.html) to try out some examples on your own!\n\n\u003cimg src=\"https://github.com/modin-project/modin/raw/7c009c747caa90554607e30b9ac2bd1b190b8c7d/docs/img/Modin_Speedup.svg\" style=\"display: block;margin-left: auto;margin-right: auto;\" width=\"100%\"\u003e\u003c/img\u003e\n\n### Installation\n\n#### From PyPI\n\nModin can be installed with `pip` on Linux, Windows and MacOS:\n\n```bash\npip install \"modin[all]\" # (Recommended) Install Modin with Ray and Dask engines.\n```\n\nIf you want to install Modin with a specific engine, we recommend:\n\n```bash\npip install \"modin[ray]\" # Install Modin dependencies and Ray.\npip install \"modin[dask]\" # Install Modin dependencies and Dask.\npip install \"modin[mpi]\" # Install Modin dependencies and MPI through unidist.\n```\n\nTo get Modin on MPI through unidist (as of unidist 0.5.0) fully working\nit is required to have a working MPI implementation installed beforehand.\nOtherwise, installation of `modin[mpi]` may fail. Refer to\n[Installing with pip](https://unidist.readthedocs.io/en/latest/installation.html#installing-with-pip)\nsection of the unidist documentation for more details about installation.\n\n**Note:** Since Modin 0.30.0 we use a reduced set of Ray dependencies: `ray` instead of `ray[default]`.\nThis means that the dashboard and cluster launcher are no longer installed by default.\nIf you need those, consider installing `ray[default]` along with `modin[ray]`.\n\nModin automatically detects which engine(s) you have installed and uses that for scheduling computation.\n\n#### From conda-forge\n\nInstalling from [conda forge](https://github.com/conda-forge/modin-feedstock) using `modin-all`\nwill install Modin and three engines: [Ray](https://github.com/ray-project/ray), [Dask](https://github.com/dask/dask) and\n[MPI through unidist](https://github.com/modin-project/unidist).\n\n```bash\nconda install -c conda-forge modin-all\n```\n\nEach engine can also be installed individually (and also as a combination of several engines):\n\n```bash\nconda install -c conda-forge modin-ray  # Install Modin dependencies and Ray.\nconda install -c conda-forge modin-dask # Install Modin dependencies and Dask.\nconda install -c conda-forge modin-mpi # Install Modin dependencies and MPI through unidist.\n```\n\n**Note:** Since Modin 0.30.0 we use a reduced set of Ray dependencies: `ray-core` instead of `ray-default`.\nThis means that the dashboard and cluster launcher are no longer installed by default.\nIf you need those, consider installing `ray-default` along with `modin-ray`.\n\nRefer to\n[Installing with conda](https://unidist.readthedocs.io/en/latest/installation.html#installing-with-conda)\nsection of the unidist documentation for more details on how to install a specific MPI implementation to run on.\n\nTo speed up conda installation we recommend using libmamba solver. To do this install it in a base environment:\n\n```bash\nconda install -n base conda-libmamba-solver\n```\n\nand then use it during istallation either like:\n\n```bash\nconda install -c conda-forge modin-ray --experimental-solver=libmamba\n```\n\nor starting from conda 22.11 and libmamba solver 22.12 versions:\n\n```bash\nconda install -c conda-forge modin-ray --solver=libmamba\n```\n\n#### Choosing a Compute Engine\n\nIf you want to choose a specific compute engine to run on, you can set the environment\nvariable `MODIN_ENGINE` and Modin will do computation with that engine:\n\n```bash\nexport MODIN_ENGINE=ray  # Modin will use Ray\nexport MODIN_ENGINE=dask  # Modin will use Dask\nexport MODIN_ENGINE=unidist # Modin will use Unidist\n```\n\nIf you want to choose the Unidist engine, you should set the additional environment \nvariable ``UNIDIST_BACKEND``. Currently, Modin only supports MPI through unidist:\n\n```bash\nexport UNIDIST_BACKEND=mpi # Unidist will use MPI backend\n```\n\nThis can also be done within a notebook/interpreter before you import Modin:\n\n```python\nimport modin.config as modin_cfg\nimport unidist.config as unidist_cfg\n\nmodin_cfg.Engine.put(\"ray\")  # Modin will use Ray\nmodin_cfg.Engine.put(\"dask\")  # Modin will use Dask\n\nmodin_cfg.Engine.put('unidist') # Modin will use Unidist\nunidist_cfg.Backend.put('mpi') # Unidist will use MPI backend\n```\n\n_Note: You should not change the engine after your first operation with Modin as it will result in undefined behavior._\n\n#### Which engine should I use?\n\nOn Linux, MacOS, and Windows you can install and use either Ray, Dask or MPI through unidist. There is no knowledge required\nto use either of these engines as Modin abstracts away all of the complexity, so feel\nfree to pick either!\n\n### Pandas API Coverage\n\n\u003cp align=\"center\"\u003e\n\n| pandas Object     | Modin's Ray Engine Coverage                                                          | Modin's Dask Engine Coverage | Modin's Unidist Engine Coverage |\n|-------------------|:------------------------------------------------------------------------------------:|:---------------:|:---------------:|\n| `pd.DataFrame`    | \u003cimg src=https://img.shields.io/badge/api%20coverage-90.8%25-hunter.svg\u003e | \u003cimg src=https://img.shields.io/badge/api%20coverage-90.8%25-hunter.svg\u003e | \u003cimg src=https://img.shields.io/badge/api%20coverage-90.8%25-hunter.svg\u003e |\n| `pd.Series`       | \u003cimg src=https://img.shields.io/badge/api%20coverage-88.05%25-green.svg\u003e | \u003cimg src=https://img.shields.io/badge/api%20coverage-88.05%25-green.svg\u003e | \u003cimg src=https://img.shields.io/badge/api%20coverage-88.05%25-green.svg\u003e \n| `pd.read_csv`     | ✅                                               | ✅ | ✅ |\n| `pd.read_table`   | ✅                                               | ✅ | ✅ |\n| `pd.read_parquet` | ✅                                               | ✅ | ✅ |\n| `pd.read_sql`     | ✅                                               | ✅ | ✅ |\n| `pd.read_feather` | ✅                                               | ✅ | ✅ |\n| `pd.read_excel`   | ✅                                               | ✅ | ✅ |\n| `pd.read_json`    | [✳️](https://github.com/modin-project/modin/issues/554)                                         | [✳️](https://github.com/modin-project/modin/issues/554) | [✳️](https://github.com/modin-project/modin/issues/554) |\n| `pd.read_\u003cother\u003e` | [✴️](https://modin.readthedocs.io/en/latest/supported_apis/io_supported.html) | [✴️](https://modin.readthedocs.io/en/latest/supported_apis/io_supported.html) | [✴️](https://modin.readthedocs.io/en/latest/supported_apis/io_supported.html) |\n\n\u003c/p\u003e\nSome pandas APIs are easier to implement than others, so if something is missing feel\nfree to open an issue!\n\n### More about Modin\n\nFor the complete documentation on Modin, visit our [ReadTheDocs](https://modin.readthedocs.io/en/latest/index.html) page.\n\n#### Scale your pandas workflow by changing a single line of code.\n\n_Note: In local mode (without a cluster), Modin will create and manage a local (Dask or Ray) cluster for the execution._\n\nTo use Modin, you do not need to specify how to distribute the data, or even know how many\ncores your system has. In fact, you can continue using your previous\npandas notebooks while experiencing a considerable speedup from Modin, even on a single\nmachine. Once you've changed your import statement, you're ready to use Modin just like\nyou would with pandas!\n\n#### Faster pandas, even on your laptop\n\n\u003cimg align=\"right\" style=\"display:inline;\" height=\"350\" width=\"300\" src=\"https://github.com/modin-project/modin/raw/7c009c747caa90554607e30b9ac2bd1b190b8c7d/docs/img/read_csv_benchmark.png?raw=true\"\u003e\u003c/a\u003e\n\nThe `modin.pandas` DataFrame is an extremely light-weight parallel DataFrame.\nModin transparently distributes the data and computation so that you can continue using the same pandas API\nwhile working with more data faster. Because it is so light-weight,\nModin provides speed-ups of up to 4x on a laptop with 4 physical cores.\n\nIn pandas, you are only able to use one core at a time when you are doing computation of\nany kind. With Modin, you are able to use all of the CPU cores on your machine. Even with a\ntraditionally synchronous task like `read_csv`, we see large speedups by efficiently\ndistributing the work across your entire machine.\n\n```python\nimport modin.pandas as pd\n\ndf = pd.read_csv(\"my_dataset.csv\")\n```\n\n#### Modin can handle the datasets that pandas can't \n\nOften data scientists have to switch between different tools\nfor operating on datasets of different sizes. Processing large dataframes with pandas\nis slow, and pandas does not support working with dataframes that are too large to fit\ninto the available memory. As a result, pandas workflows that work well\nfor prototyping on a few MBs of data do not scale to tens or hundreds of GBs (depending on the size\nof your machine). Modin supports operating on data that does not fit in memory, so that you can comfortably\nwork with hundreds of GBs without worrying about substantial slowdown or memory errors.\nWith [cluster](https://modin.readthedocs.io/en/latest/getting_started/using_modin/using_modin_cluster.html)\nand [out of core](https://modin.readthedocs.io/en/latest/getting_started/why_modin/out_of_core.html)\nsupport, Modin is a DataFrame library with both great single-node performance and high\nscalability in a cluster.\n\n#### Modin Architecture\n\nWe designed [Modin's architecture](https://modin.readthedocs.io/en/latest/development/architecture.html)\nto be modular so we can plug in different components as they develop and improve:\n\n\u003cimg src=\"https://github.com/modin-project/modin/raw/7c009c747caa90554607e30b9ac2bd1b190b8c7d/docs/img/modin_architecture.png\" alt=\"Modin's architecture\" width=\"75%\"\u003e\u003c/img\u003e\n\n### Other Resources\n\n#### Getting Started with Modin\n\n- [Documentation](https://modin.readthedocs.io/en/latest/)\n- [10-min Quickstart Guide](https://modin.readthedocs.io/en/latest/getting_started/quickstart.html)\n- [Examples and Tutorials](https://modin.readthedocs.io/en/latest/getting_started/examples.html)\n- [Videos and Blogposts](https://modin.readthedocs.io/en/latest/getting_started/examples.html#talks-podcasts)\n- [Benchmarking Modin](https://modin.readthedocs.io/en/latest/usage_guide/benchmarking.html)\n\n#### Modin Community\n\n- [Slack](https://join.slack.com/t/modin-project/shared_invite/zt-yvk5hr3b-f08p_ulbuRWsAfg9rMY3uA)\n- [Twitter](https://twitter.com/modin_project)\n- [Mailing List](https://groups.google.com/g/modin-dev)\n- [GitHub Issues](https://github.com/modin-project/modin/issues)\n- [StackOverflow](https://stackoverflow.com/questions/tagged/modin)\n\n#### Learn More about Modin\n\n- [Frequently Asked Questions (FAQs)](https://modin.readthedocs.io/en/latest/getting_started/faq.html)\n- [Troubleshooting Guide](https://modin.readthedocs.io/en/latest/getting_started/troubleshooting.html)\n- [Development Guide](https://modin.readthedocs.io/en/latest/development/index.html)\n- Modin is built on many years of research and development at UC Berkeley. Check out these selected papers to learn more about how Modin works:\n  - [Flexible Rule-Based Decomposition and Metadata Independence in Modin](https://people.eecs.berkeley.edu/~totemtang/paper/Modin.pdf) (VLDB 2021)\n  - [Dataframe Systems: Theory, Architecture, and Implementation](https://www2.eecs.berkeley.edu/Pubs/TechRpts/2021/EECS-2021-193.pdf) (PhD Dissertation 2021)\n  - [Towards Scalable Dataframe Systems](https://arxiv.org/pdf/2001.00888.pdf) (VLDB 2020)\n\n#### Getting Involved\n\n***`modin.pandas` is currently under active development. Requests and contributions are welcome!***\n\nFor more information on how to contribute to Modin, check out the\n[Modin Contribution Guide](https://modin.readthedocs.io/en/latest/development/contributing.html).\n\n### License\n\n[Apache License 2.0](LICENSE)\n","funding_links":[],"categories":["Machine Learning","Python","Basic Components","Data Manipulation","其他_机器学习与深度学习","Data Processing","Distributed Computing Libraries","数据容器和结构","Curated List","Building","Computation and Communication Optimisation","📚 فهرست","Uncategorized","Machine Learning Frameworks","📋 Contents","Models and Projects","Optimization Tools","🐍 Python","Data Containers \u0026 Dataframes","Libraries","Data Analysis"],"sub_categories":["Alternative libraries","Data Frames","Data Representation","Columnar Based Storage","Data Tools","Workflows","کتابخانه هاي تحليل داده","Uncategorized","🧬 1. Core Frameworks \u0026 Libraries","distributed computing","Useful Python Tools for Data Analysis"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodin-project%2Fmodin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodin-project%2Fmodin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodin-project%2Fmodin/lists"}