-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modin.Series is not a subtype of pd.Series #1459
Comments
Hi @isilopekel thanks for raising the issue! This was an intentional design decision, as libraries that check explicitly for With that said, this bug is an issue with passing the |
Hi Devin, Thanks for the reply. I am not quite sure if I understand you correctly. I am passing modin.Series to the groupby function on a modin.DataFrame. Since it is not a good practice to mix both libraries, I assume that accepting modin.Series should be the default behavior for the aggregation function. Additionally, pandas.Series can be supported transparently by converting it internally to modin.Series or could be alternatively left out because it is a bad practice. Could you please share your thoughts as well? Best, |
The fix here will be an internal conversion to our internal representation. Internally, Modin does not have a concept of a |
Signed-off-by: Dmitry Chigarev <[email protected]>
Signed-off-by: Dmitry Chigarev <[email protected]>
…oject#1828) Signed-off-by: Dmitry Chigarev <[email protected]>
I have tried converting some Pandas code to Modin and this still seems to be an issue. I literally just installed Modin:
and replaced Pandas with Modin:
and ran the code again and I get this:
have I misunderstood something fundamental? Thank you. |
Code we can use to reproduce:
While trying to have a workaround for issue 1457, another problem has appeared.
Describe the problem
Modin part throws an error:
.../venv/lib/python3.6/site-packages/modin/pandas/series.py", line 1291, in nunique
return super(Series, self).nunique(dropna=dropna)
TypeError: super(type, obj): obj must be an instance or subtype of type
Error disappears when
Num=("c", mpd.Series.nunique) is replaced by
Num=("c", pd.Series.nunique)
The text was updated successfully, but these errors were encountered: