Last answered:

12 Jan 2021

Posted on:

08 Jan 2021

1

Problem with data absenteeism

If got an error if i run 5.2 Absenteeism, that Pets is not in the index. The data ist rubbish.
5 answers ( 0 marked as helpful)
Instructor
Posted on:

08 Jan 2021

0
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
Posted on:

09 Jan 2021

0
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.
Instructor
Posted on:

09 Jan 2021

0
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
Posted on:

11 Jan 2021

0
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
Instructor
Posted on:

12 Jan 2021

0

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

Submit an answer