I was trying to implement the Wk4 assignment in Colab. However, I am running into the following error. [AttributeError: ‘DataFrame’ object has no attribute ‘iteritems’]
I tried to resolve it by including the following code,
import pandas as pd
pd.DataFrame.iteritems = pd.DataFrame.items
But it resulted in another error.
Attaching a screenshot of the same for reference. Any help would be highly appreciated.
Can you confirm if you are trying to run the assignment notebook codes in your local Colab environment??
if the above answer is yes, can I know if you have downloaded all the files required you to run the run codes in your local Colab environment?
Also confirm the assignment Name you doing, you have selected AI for Medical Prognosis and week4 which I checked with my assignment codes and don’t seem to match, so kindly confirm this too!!
Yes I am running in my local Colab env. And i have downloaded all the necessary files. All those issues are sorted out. I only stuck with the last but third code cell. I was initially getting error due to iteritems() which i understood are now used only in older version of pandas. So, I have used a workaround as mentioned in the post. But then, again I am unable to proceed.
Your code error is coming from the below code line
pd.DataFrame.iteritems = pd.DataFrame.items
error is stating the data frame doesn’t have the attribute iterates. So can you explain why this step was added as I don’t see this code in the assignment.
Sorry for the delay in response I was away from work desk!!
Just reviewing email. I had a 8/10 grade on the last effort May 28. I thought that I finished the fourth module on AI. I am William Marietta - wgmarietta@gmail.com. I want to sign up for another AI course - Deep Learning. Let me know what to do.
it’s against community guidelines to ask for assignment q/a.
your last post was 5 months back. if you haven’t finished the assignment then you need to subscribe to course again. if you had finished and looking for the course material and assignment q/a, we cannot still provide you this as you were suppose to save it when you had subscribed for the course.
You also seem to not mentioned which course you were doing as you posted in a specialisation which have had only three courses but you are mentioning fourth course, so it is clearly not sure which specialisation or course you were referring to.
Also kindly always create a new topic, in case you do not know how to create a post or select a category, refer the FAQ section on How to Use the ForumCode of Conduct
I recently joined to repeat the deep learning (data engineering) course again on courtesy entry. I listened to the first group of lectures last year. The quiz appeared in the hispanic language. I need the english version.
I would be better served to receive written material via U.S. Mail.