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 index object is passed to columns parameter in DataFrame constructor, the column name is not being preserved. I know there are some design issues are not being able to assign column name to column objects, but this is probably a bug.
Steps/Code to reproduce bug
In [1]: importcudfIn [2]: df=cudf.DataFrame(columns=cudf.Index(['a'], name='n'))
dfIn [3]: dfOut[3]:
EmptyDataFrameColumns: [a]
Index: []
In [4]: df.columnsOut[4]: Index(['a'], dtype='object')
In [5]: importpandasaspdIn [6]: pdf=pd.DataFrame(columns=pd.Index(['a'], name='n'))
In [7]: pdf.columnsOut[7]: Index(['a'], dtype='object', name='n')
In [8]: df=cudf.DataFrame(columns=pd.Index(['a'], name='n'))
In [9]: df.columnsOut[9]: Index(['a'], dtype='object')
Expected behavior
In [7]: df.columnsOut[7]: Index(['a'], dtype='object', name='n')
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 index object is passed to
columns
parameter inDataFrame
constructor, the column name is not being preserved. I know there are some design issues are not being able to assign column name to column objects, but this is probably a bug.Steps/Code to reproduce bug
Expected behavior
Environment overview (please complete the following information)
The text was updated successfully, but these errors were encountered: