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
Describe the bug
When an empty list is passed to Index constructor cudf defaults to float64, whereas pandas defaults to object. We should match the same.
Steps/Code to reproduce bug
In [1]: importcudfIn [2]: cudf.Index([])
Out[2]: Float64Index([], dtype='float64')
In [3]: importpandasaspdIn [4]: pd.Index([])
Out[4]: Index([], dtype='object')
Expected behavior
In [4]: cudf.Index([])
Out[4]: StringIndex([], dtype='object')
Environment overview (please complete the following information)
Environment location: [Bare-metal]
Method of cuDF install: [from source]
The text was updated successfully, but these errors were encountered:
Describe the bug
When an empty list is passed to
Index
constructorcudf
defaults tofloat64
, whereas pandas defaults toobject
. We should match the same.Steps/Code to reproduce bug
Expected behavior
Environment overview (please complete the following information)
The text was updated successfully, but these errors were encountered: