Search code examples
pythonpandasdaskmodin

I am getting error while running Modin pandas to speed up my pandas capability.How to resolve this issue?


### Read in the data with Modin
import modin.pandas as pd
s = time.time()
df = pd.read_csv("train.csv")
e = time.time()
print("Modin Loading Time = {}".format(e-s))

ImportError: Please `pip install modin[ray] or modin[dask] to install an engine


Solution

  • The issue is that you need to wrap the module in quotes.

    To solve:

    pip install "modin[ray]"
    

    or

    pip install "modin[dask]"
    

    It's in the documentation but not obvious.