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
Describe the bug We are materializing RangeIndex when creating a dataframe from list of Series objects.
Series
Steps/Code to reproduce bug
>>> import cudf >>> s = cudf.Series([1, 2, 3], index=['a', 'b', 'c']) >>> cudf.DataFrame([s, s, s]) >>> cudf.DataFrame([s, s, s]).index Int64Index([0, 1, 2], dtype='int64') >>> import pandas as pd >>> pd.DataFrame([s.to_pandas(), s.to_pandas(), s.to_pandas()]).index RangeIndex(start=0, stop=3, step=1)
Expected behavior
>>> cudf.DataFrame([s, s, s]).index RangeIndex(start=0, stop=3, step=1)
Environment overview (please complete the following information)
The text was updated successfully, but these errors were encountered:
DataFrame
Avoid index materialization when DataFrame is created with un-named…
e416188
… `Series` objects (#10071) Fixes: #10070 This PR removed materializing of `index` incase of list-like un-named `Series` inputs are passed to `DataFrame` constructor. Authors: - GALI PREM SAGAR (https://github.com/galipremsagar) Approvers: - Vyas Ramasubramani (https://github.com/vyasr) - Ashwin Srinath (https://github.com/shwina) URL: #10071
galipremsagar
Successfully merging a pull request may close this issue.
Describe the bug
We are materializing RangeIndex when creating a dataframe from list of
Series
objects.Steps/Code to reproduce bug
Expected behavior
Environment overview (please complete the following information)
The text was updated successfully, but these errors were encountered: