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
@meijiu thank you for the detailed bug report! I was able to reproduce the bug at Modin version 86d3610. If I see a quick fix, I'll assign the bug to myself and make a fix. Otherwise, I'll leave the issue unassigned.
@meijiu I just noticed that this was a bug with an empty dataframe. Modin functions on empty dataframes usually default to pandas, and we lose dtypes when we default to pandas. See e.g. #4191 and #4060 for similar issues.
#4605 tracks a way to robustly handle empty dataframes in general in Modin. We actually have a draft PR, #4606, ready for that feature. I think that PR should fix this bug.
I will mark this issue as a duplicate of #4605. For now, I suggest using pandas to work with empty dataframes, then converting the dataframes to Modin dataframes once they're not empty.
System information
Describe the problem
When calling
reset_index
on an empty DataFrame, column types all get converted toobject
.Source code / logs
The text was updated successfully, but these errors were encountered: