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

Problem with data absenteeism

Problem with data absenteeism

Super Learner
1
Vote
5
Answer

If got an error if i run 5.2 Absenteeism, that Pets is not in the index. The data ist rubbish.

Please can you help me. Maybe with the right data or some solution in code.

1 week
5 Answers

365 Team
0
Votes

Hi Jakob!
Thanks for reaching out.
There may be an issue with writing ‘Pets’ in plural in the module or code. Please retry with “Pet” and let us know if this solves the issue. 
Hope this helps but please feel free to get back to us should you need further assistance. Thank you.
Best,
Martin

Super Learner
0
Votes

I tried to make the columns of all files in Pet, unfortunately I still get the answer that Pets is not in the index.
I have also tried to adjust the name in the module without success.

365 Team
0
Votes

Hi Jakob!
Thanks for your reply.
Can you please share your Notebook document and the module you are using in a safe link? I’d like to execute the code on my end, so that I try to figure out the source of the issues better. Thank you.
Hope this helps.
Best
Martin

Here is the Dropbox Link, I hope everything you need is in there.https://www.dropbox.com/sh/6zwuh97tcfpnmcb/AAA-uYz-9o93qvfp_2HgOUCca?dl=0

6 days

Super Learner
0
Votes

Here is the Dropbox Link, I hope everything you need is in there.https://www.dropbox.com/sh/6zwuh97tcfpnmcb/AAA-uYz-9o93qvfp_2HgOUCca?dl=0

365 Team
0
Votes

Hi Jakob!
I am unable to run the code you provide smoothly (files 4.15 and 5.10….ipynb). You’ve addressed it to a specific directory on your computer, while to make your code universal, so to speak, you need to address it to the files in the folder where the given Notebook Document has been located.
After I make this correction, 4.15 runs smoothly.
Then, I obtain a different error (even after I remove the Kopie addition that can be found at the end of each):

ModuleNotFoundError: No module named 'absenteeism_module'

So, I need to make the aforementioned modifications and the following ones, to successfully execute the first row from 5.10.:

from absenteeism_module import *
model = absenteeism_model('model', 'scaler')
model.load_and_clean_data('absence_new.csv')
model.predicted_outputs()

After I do that, I am able to execute the code with no error. However, please note that I used the absenteeism_module.py that we’ve provided in the course.
In other words, I stumbled upon no Pet/Pets error this way.
Hope this helps but please get back to us should you need further assistance. Thank you.
Kind regards,
Martin

It’s not working, to bad.

1 day
JanuaryPromo
×
Complete Data Science Education
Get 50% OFF