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
Expected behavior
NaN is a float value, and thus should force the column to cast to floats. This would match the expectation of other float values like 3.5 (instead of NaN). This is what pandas does:
Describe the bug
Constructing an integer index with a NaN value produces an index of ints with a null value, rather than casting to floats.
Steps/Code to reproduce bug
This doctest (#9815) is failing:
cudf/python/cudf/cudf/core/_base_index.py
Lines 832 to 834 in 582cc6e
The index is actually getting this value:
Expected behavior
NaN is a float value, and thus should force the column to cast to floats. This would match the expectation of other float values like 3.5 (instead of NaN). This is what pandas does:
The text was updated successfully, but these errors were encountered: