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
OS X 11.6.4
Modin version '0.15.2'
Python 3.9.12*:
Describe the problem
Calling modin.pandas.Categorical on a modin.pandas.Series which is already a category dtype results in AttributeError: 'Series' object has no attribute '_codes'. Might be a trivial issue, but I'm reporting since the behavior is unexpected.
Source code / logs
import modin.pandas as pd
s = pd.Series([1,2,3,4], dtype='category')
x = pd.Series([1,2,3,4], dtype='int')
# this won't fail
pd.Categorical(x, categories=None, ordered=True)
# this will
pd.Categorical(s, categories=None, ordered=True)
The text was updated successfully, but these errors were encountered:
Duplicate of #4275. modin.pandas.Series object does not have a _codes attribute, which pandas CategoricalDType code expects when reassigning a categorical to another categorical. Referencing this to the broader empty dataframe issue #4605.
System information
OS X 11.6.4
Modin version '0.15.2'
Python 3.9.12*:
Describe the problem
Calling
modin.pandas.Categorical
on amodin.pandas.Series
which is already acategory
dtype results inAttributeError: 'Series' object has no attribute '_codes'
. Might be a trivial issue, but I'm reporting since the behavior is unexpected.Source code / logs
The text was updated successfully, but these errors were encountered: