BUG: Series.str.__getitem__
in modin ends up with incorrect dtype if an invalid key was passed
#5968
Open
3 tasks done
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
When an invalid key is passed it results into a Series full of NaNs having float64 dtype. Modin on its turn doesn't have this logic of changing the dtype depending on the result and just copies them from the source frame:
modin/modin/core/storage_formats/pandas/query_compiler.py
Lines 1629 to 1631 in 7f12953
Expected Behavior
To work as pandas
Error Logs
Installed Versions
Replace this line with the output of pd.show_versions()
--
Note: this issue is part of an epic #3804
The text was updated successfully, but these errors were encountered: