Skip to content

[BUG] Empty columns are converted to RangeIndex in df.set_index(...) function #1753

@kkraus14

Description

@kkraus14

Reproducer:

import cudf

gdf = cudf.DataFrame()
gdf['date'] = cudf.Series([], dtype='datetime64[ms]')
broken_gdf = gdf.set_index('date')

print(broken_gdf.index)
print(broken_gdf.index.dtype)

Metadata

Metadata

Assignees

Labels

PythonAffects Python cuDF API.bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions