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
DType of Elements in Lists changes with df1['trans'] = df1['xyz']
df1['trans'] = df1['xyz']
Repro:
>>> import cudf >>> df =cudf.DataFrame() >>> df['unt_qty'] = [['a', 'b'], []] >>> df['trans'] = [1, 2] >>> df['xyz'] = [1121212,21231232] >>> df1 = df[df.trans.isna()] >>> df1['trans'] = df1['xyz'] >>> df1.unt_qty.dtype ListDtype(object) >>> df1 = df1.drop(['xyz'], axis=1) >>> df1.unt_qty.dtype ListDtype(int8)
if i comment out the line df1['trans'] = df1['xyz'] the dtype of list remains same.
>>> import cudf >>> df =cudf.DataFrame() >>> df['unt_qty'] = [['a', 'b'], []] >>> df['trans'] = [1, 2] >>> df['xyz'] = [1121212,21231232] >>> df1 = df[df.trans.isna()] >>> df1.unt_qty.dtype ListDtype(object) >>> df1 = df1.drop(['xyz'], axis=1) >>> df1.unt_qty.dtype ListDtype(object)
Impact: This causing issue in concats.
The text was updated successfully, but these errors were encountered:
ListDtype
Preserve the correct ListDtype while creating an identical empty co…
c25d35b
…lumn (#10151) Fixes: #10122 This PR fixes an issue where the list columns children[1]'s dtype wasn't being preserved correctly. Authors: - GALI PREM SAGAR (https://github.com/galipremsagar) Approvers: - https://github.com/brandon-b-miller URL: #10151
galipremsagar
Successfully merging a pull request may close this issue.
DType of Elements in Lists changes with
df1['trans'] = df1['xyz']
Repro:
if i comment out the line
df1['trans'] = df1['xyz']
the dtype of list remains same.Impact: This causing issue in concats.
The text was updated successfully, but these errors were encountered: