I have this sample data set
| City |
|---|
| LAL |
| NYK |
| Dallas |
| Detroit |
| SF |
| Chicago |
| Denver |
| Phoenix |
| Toronto |
And what I want to do is update certain values with specific values, and the rest of it I would leave as it is.
So, with SQL I would do something like this:
update table1
set city = case
when city='LAL' then 'Los Angeles'
when city='NYK' then 'New York'
Else city
end
What would be the best way to do this in Pandas?