Last active
October 6, 2016 23:15
-
-
Save shanealynn/1c30da11d88cba2ecdf3936209a981b9 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
# Change the first name of all rows with an ID greater than 2000 to "John" | |
data.loc[data['id'] > 2000, "first_name"] = "John" | |
# Change the first name of all rows with an ID greater than 2000 to "John" | |
data.loc[data['id'] > 2000, "first_name"] = "John" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment