Last active
July 26, 2021 04:36
-
-
Save Nithilaa/a01eb84b8c207d20e7b52c759f8ab90d to your computer and use it in GitHub Desktop.
converting the Flag column from categorical data type to numeric type
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
df1['Flag'] = df1['Flag'].map({0: '0', 1: '1'}) | |
df1.head() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment