You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Conditional import
try:
import modin.pandas as pd
from modin.pandas import DataFrame, Series
except ImportError:
import pandas as pd
from pandas import DataFrame, Series
The text was updated successfully, but these errors were encountered:
One library I know is swifter (See jmcarpenter2/swifter/issues/93). But you are definitely right, we should have a way to control it with configuration.
Or we may do in another way, by not raising TypeError in _transform, and everything hopefully should work smoothly.
try:
import modin.pandas as mpd
except ImportError:
pass
class ApplyToRows(pdp.ApplyToRows):
...
def _transform(self, X, verbose):
...
if isinstance(new_cols, pd.Series) or isinstance(new_cols, mpd.Series):
...
if isinstance(new_cols, pd.DataFrame) or isinstance(new_cols, mpd.DataFrame):
...
I think for most part we can just replace
with
The text was updated successfully, but these errors were encountered: