How to replace type: pandas.core.frame.DataFrame with type: modin.pandas.dataframe.DataFrame

I try to replace pandas with modin pandas in the code: if not isinstance(X, pd.DataFrame): raise TypeError( "X is not a pandas dataframe. The dataset should be a pandas dataframe.") but the error is: DataFrame Expected type <class ‘pandas.core.frame.DataFrame’>, found <class ‘modin.pandas.dataframe.DataFrame’> instead How should I change code to solve the problem? >Solution : As… Read More How to replace type: pandas.core.frame.DataFrame with type: modin.pandas.dataframe.DataFrame