SlinkyLincy / intro-data-capstone-biodiversity

0 stars 0 forks source link

Remember inplace parameter when using .rename() #3

Closed karl-project-review closed 6 years ago

karl-project-review commented 6 years ago

https://github.com/SlinkyLincy/intro-data-capstone-biodiversity/blob/8666b27f6069db09ced697dee3c533bfbb10dcc7/Petra%20submission/biodiversity.py#L240 In order for the results of the .rename() method to be stored, we either need to assign the results of the statement to a variable or else use the inplace parameter, like so:

category_pivot.rename(columns = {'False' : 'not_protected', 'True' : 'protected'}, inplace=True)
SlinkyLincy commented 6 years ago

Addressed in commit 3b15cb7