Created
March 17, 2018 06:47
-
-
Save okdolly-001/11faa3fe381665f37b7714bc2eab36c2 to your computer and use it in GitHub Desktop.
Binarize integer in a pandas dataframe #pandas
This file contains hidden or 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
y_train['loss'] = (y_train['loss'] > 0.0).astype(int) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment