-
Notifications
You must be signed in to change notification settings - Fork 902
New issue
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
[BUG] cudf uses deprecated Series.label_encoding
function internally
#9474
Comments
I saw @shwina added this to the 22.02 board. We should probably put in a temporary workaround to avoid showing FutureWarnings in the 21.12 release when using categorical columns or the factorize method. I'd suggest making a private function that performs the work, replace internal usage with that private function, and let the public function for |
I'm opening a PR to deprecate After that PR, we will still need to review whether the internal method can be simplified or removed after its public API is removed. |
…d internally. (#9535) This PR addresses part of #9474 by deprecating `DataFrame.label_encoding` and adding a private method that can be used internally without raising a `FutureWarning` until the public API is removed and internals are refactored. See #9474 for more information. Authors: - Bradley Dice (https://github.com/bdice) Approvers: - Vyas Ramasubramani (https://github.com/vyasr) - GALI PREM SAGAR (https://github.com/galipremsagar) URL: #9535
This issue has been labeled |
Closing this as it looks like #9535 addressed it. Please feel free to reopen if I missed something. |
This isn't quite addressed yet because the three internal uses of the now-internal |
This issue has been labeled |
Maybe closes #9474. The `Series._label_encoding` function is used to integer encode columns. It makes much more sense for this to be a method of `Column` rather than `Series` (the index is irrelevant). Thus, I've moved the implementation to `Column`, Authors: - Ashwin Srinath (https://github.com/shwina) Approvers: - Vyas Ramasubramani (https://github.com/vyasr) URL: #12040
There are multiple places where cuDF internally calls the
Series.label_encoding
method, which was deprecated in #9289:Note that the latter is the
DataFrame
implementation oflabel_encoding
.The first two should be rewritten to not use the deprecated function, while the third should also be deprecated.
The text was updated successfully, but these errors were encountered: