Could you please help me to fix the below error for the project 2(python for machine learning)?


#1

Hi, could you please help me to fix the below error for the project 2? thanks.

"IndexError Traceback (most recent call last)
in ()
74
75 # Calling the function to execute project 2
—> 76 getStats(’/home/bintaoli6311/got-your-back/GYB-GMail-Backup-bintaoli0505@gmail.com/’,‘bintaoli0505@gmail.com’)

in getStats(path1, emailidPersonal)
32 elif line.startswith(“Date:”):
33 dateExt=re.findall("[ ].*[ \n]",line)[0].strip()
—> 34 hourSlot=dateExt.split(" “)[4].split(”:")[0]
35 # Appending to the data frame
36 index+=1

IndexError: list index out of range"

Regards,
Bintao Li


#2

Not sure whether we are allowed to collaborate on the project. I am stuck too.


#3

Hi @Gopi_Raga,

Feel free to collaborate on the project. You can have a look into the solution of above question here

Hope this helps

Thanks