Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy categorical codes if empty (fixes pandas-dev#18051)
If `old_categories` is empty (all nan categories) then `_recode_for_categories` should return `codes.copy()` so that the writable flag is True.
- Loading branch information