As the title says I have a column renaming problem and it is about the following code:
(I am sorry for not pasting my project here but I do a lot of testings inside and it would look like a mess, but this code is of the project “Petal Power Inventory”)
I know codebyte won’t work here so I rather explain my error (even though there is no error message)
The problem is the following:
When I rename the columns of the original dataframe aka “inventory” it goes all fine, even if I’d do so with the exact same code. But when I try to rename the column in “product_request” which is derived from inventory, I cannot rename the column… It changes the column name from “product_description” to “0” (zero). I am clueless why it does that.
I’m guess it must do with the fact that it’s derived from another dataframe but I don’t know how to fix it…
(This is not part of the exercises of the project, I just wanted to do some plus work)
I’d appreciate it if somebody could explain it to me