Last active
February 5, 2020 11:06
-
-
Save lakshay-arora/2d976b8643d79c8ac6b8b64e3fe731a4 to your computer and use it in GitHub Desktop.
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
# update multiple columns with condition | |
data.loc[(data.age >= 20), ['section', 'city']] = ['S','Pune'] | |
data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment