I have a pandas dataframe which looks like this:
     objectType    name parent  totalSurface   roofSurface
B001   building  А01.01   Q001     132000.00  6.600000e+04
B002   building  А02.01   Q002       4840.00  1.612000e+03
B003   building  А03.01   Q003       5160.00  1.290140e+03
B004   building  А03.02   Q003       3000.00  1.000430e+03
B005   building  А04.01   Q004      11038.00  1.226390e+03
But when I execute the following command:
proportions2.rename(columns={"parent": "pid"}, inplace=True)
I get KeyError::
KeyError: 'parent'
Am I missing something here? I have looked at the main question for this (https://stackoverflow.com/a/11354850/2068931) and it just says to use .rename() on the dataframe like I am trying to do, but I just get this KeyError.
