-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new Factor method to replace levels without remapping codes.
The new replace_levels() method is much simpler and more consistent with the levels()<- method in R. The existing set_levels() functionality is moved to the new remap_levels() to avoid confusion; set_levels() itself is now an alias to either remap_levels() or replace_levels(), depending on the remap= argument. The default remap=True has a deprecation warning as I hope to change it to False, such that set_levels() is eventually the same as replace_levels().
- Loading branch information
Showing
2 changed files
with
124 additions
and
18 deletions.
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