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
cudf.from_pandas
Describe the bug When an empty index with object dtype is constructed and passed to cudf.from_pandas, the dtype is being reset to float64.
object
float64
Steps/Code to reproduce bug
In [1]: import pandas as pd In [2]: s = pd.Series([], dtype='str') In [3]: import cudf In [4]: gs = cudf.from_pandas(s) In [5]: s Out[5]: Series([], dtype: object) In [6]: gs Out[6]: Series([], dtype: object) In [7]: i = pd.Index([], dtype='str') In [8]: i Out[8]: Index([], dtype='object') In [9]: cudf.from_pandas(i) Out[9]: Float64Index([], dtype='float64')
Expected behavior
In [9]: cudf.from_pandas(i) Out[9]: StringIndex([], dtype='object')
Environment overview (please complete the following information)
The text was updated successfully, but these errors were encountered:
Fix empty string column construction (#14052)
c9d8821
Fixes #14046 This PR fixes empty string column construction that arises due to a corner-case in the way pyarrow constructs arrays. Authors: - GALI PREM SAGAR (https://github.com/galipremsagar) Approvers: - Bradley Dice (https://github.com/bdice) URL: #14052
galipremsagar
Successfully merging a pull request may close this issue.
Describe the bug
When an empty index with
object
dtype is constructed and passed tocudf.from_pandas
, the dtype is being reset tofloat64
.Steps/Code to reproduce bug
Expected behavior
Environment overview (please complete the following information)
The text was updated successfully, but these errors were encountered: