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
After reset_index() partial dtypes will look like this, which will cause the failure at materialization stage:
ModinDtypes:
value type: <class 'modin.core.dataframe.pandas.metadata.dtypes.DtypesDescriptor'>;
value:
DtypesDescriptor:
known dtypes: {'a': dtype('int64')}; <--- non MultiIndex label
remaining dtype: None;
cols with unknown dtypes: [('b', 'min'), ('b', 'std'), ('c', 'min'), ('c', 'std')]; <--- MultiIndex labels
schema is known: False;
has parent df: True;
columns order: {0: 'a', 1: ('b', 'min'), 2: ('b', 'std'), 3: ('c', 'min'), 4: ('c', 'std')};
know all names: True
Expected Behavior
to work
Error Logs
Traceback (most recent call last):
File "modin/t4.py", line 6, in <module>print(res.dtypes)
File "modin/modin/pandas/base.py", line 4167, in __getattribute__
attr =super().__getattribute__(item)
File "modin/modin/pandas/dataframe.py", line 325, in dtypesreturnself._query_compiler.dtypes
File "modin/modin/core/storage_formats/pandas/query_compiler.py", line 321, in dtypesreturnself._modin_frame.dtypes
File "modin/modin/core/dataframe/pandas/dataframe/dataframe.py", line 387, in dtypes
dtypes =self._dtypes.get()
File "modin/modin/core/dataframe/pandas/metadata/dtypes.py", line 832, in getself._value =self._value.to_series()
File "modin/modin/core/dataframe/pandas/metadata/dtypes.py", line 436, in to_seriesself.materialize()
File "modin/modin/core/dataframe/pandas/metadata/dtypes.py", line 418, in materializeassertlen(self.columns_order) ==len(self._known_dtypes)
AssertionError
Installed Versions
Replace this line with the output of pd.show_versions()
The text was updated successfully, but these errors were encountered:
Modin version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest released version of Modin.
I have confirmed this bug exists on the main branch of Modin. (In order to do this you can follow this guide.)
Reproducible Example
Issue Description
After
reset_index()
partial dtypes will look like this, which will cause the failure at materialization stage:Expected Behavior
to work
Error Logs
Installed Versions
Replace this line with the output of pd.show_versions()
The text was updated successfully, but these errors were encountered: