BUG: first_valid_index
errors on dataframe with only None/NaN values
#4912
Labels
bug 🦗
Something isn't working
P2
Minor bugs or low-priority feature requests
pandas concordance 🐼
Functionality that does not match pandas
System information
modin.__version__
):5ff947b9
(latest master on my machine)Exception:
IndexError: only integers, slices (
:), ellipsis (
...), numpy.newaxis (
None) and integer or boolean arrays are valid indices
, coming from the index operation on this line in the query compiler.Describe the problem
Per pandas docs,
first_valid_index
should have the following behavior:This error currently does not affect empty dataframes, as those will default to pandas for this method.
This bug affects
last_valid_index
and possibly other functions as well; I'll investigate further. I plan to fix this (and other similar issues) along with #4909, since the changes toMap
will affectReduce
andTreeReduce
operators as well.The text was updated successfully, but these errors were encountered: