Skip to content

Instantly share code, notes, and snippets.

@lakshay-arora
Last active February 5, 2020 11:06
Show Gist options
  • Save lakshay-arora/2d976b8643d79c8ac6b8b64e3fe731a4 to your computer and use it in GitHub Desktop.
Save lakshay-arora/2d976b8643d79c8ac6b8b64e3fe731a4 to your computer and use it in GitHub Desktop.
# 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