I have an excel spreadsheet that looks like:
expense.xlsx
|Amount|CategoryId|Date|
|:----|:------:|-----:|
| 123 | 1 | 2020-07-07|
| 321| 2 | 2020-07-07|
I have a dictionary for the categories:
catDict = {1:'a', 2:'b'}
How would I go about changing the excel column "CategoryId" to match the dictionary values:
Amount | CategoryId | Date |
---|---|---|
123 | a | 2020-07-07 |
321 | b | 2020-07-07 |