We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RangeIndex
Describe the bug In pandas comaptibility mode, empty dataframe columns need to be a RangeIndex.
Steps/Code to reproduce bug
In [1]: import pandas as pd In [2]: df = pd.DataFrame() In [3]: df.columns Out[3]: RangeIndex(start=0, stop=0, step=1) In [4]: import cudf In [5]: cudf.DataFrame().columns Out[5]: Index([], dtype='object') In [6]: cudf.set_option("mode.pandas_compatible", True) In [7]: cudf.DataFrame().columns Out[7]: Index([], dtype='object')
The text was updated successfully, but these errors were encountered:
IMO we should make cudf.DataFrame().columns return RangeIndex regardless of pandas compatible mode
cudf.DataFrame().columns
Sorry, something went wrong.
Agreed 👍 Will do.
galipremsagar
No branches or pull requests
Describe the bug
In pandas comaptibility mode, empty dataframe columns need to be a RangeIndex.
Steps/Code to reproduce bug
The text was updated successfully, but these errors were encountered: