-
Notifications
You must be signed in to change notification settings - Fork 916
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix categorical scalar insertion (#6830)
This PR closes part of #2269 and is created in place of #5306 . I created this PR because that PR #5306 got messy after rebasing from an earlier branch of `cudf`. The purpose of this is to fix the below pandas Categorical assignment which in turn fixes #2269 . ```python import numpy as np import pandas as pd import cudf head = cudf.DataFrame({'a':[1]}) cat_s = pd.Categorical.from_codes(np.zeros(len(head), dtype=int), categories=['cat.csv']) head.assign(path=cat_s) ```
- Loading branch information
Showing
3 changed files
with
81 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters