Changing the column order
Hello,
When I try to change the column order for the newly created month and day variables, the values in the "Absenteesim Time in Hours" change. I don't know why this is happening.
PS: I created a new variable to store the modified column names and then assigned it to df.columns.
Any help will be appreciated.
Thanks in advance.
1 answers ( 0 marked as helpful)
Hi Pinky!
Thanks for reaching out.
Oftentimes, people get to this error message in case they haven't executed all codes cells from the exercise in the consecutive order suggested in the lectures from the course. That's why restarting the kernel and re-running all code cells consecutively, starting from the top, usually solves this problem.
In case this doesn't help, can you please share your Notebook Document, so that we can look into it? Please send it to martin@365datascience.com. Thank you.
Hope this helps.
Best,
Martin
Best,
Martin