The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

Changing the column order

Changing the column order

0
Votes
1
Answer

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 Answer

365 Team
0
Votes

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