Week 4 assignment- implementing in COLAB

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.

1 Like

Hi @Sandhya_Soman

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!!

Regards
DP

Hi Deepti,

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.

1 Like

and you have used same code as week 4 assignment name?

Yes

1 Like

can you share the link to the colab via personal DM. kindly don’t post the link here as you are practicing a graded course assignment.

regards
DP

Sure, I have sent the link. Kindly confirm

1 Like

If possible, please send me your notebook.

1 Like

Hi @Sandhya_Soman

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!!

Regards
DP

Hi @Deepti_Prasad

I have replied in DM.

2 Likes

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.

Bill Marietta

I really didn’t get your issue? you didn’t clear your assignment?

or you want to take up a new course ?

Regards
DP

I need to finish the assignment. Is it to late? Send me the material and assignment Q/A

@Bill100

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 Forum Code of Conduct

Regards
DP

Hi Deepti,
I am confused as to why I am receiving these emails. Kindly keep me out of this loop.

1 Like

Because the other learner has posted on your created post, you will get the notification.

you can change the notification to this post to muted where the bell icon shows if you don’t want any notification on this post.

When you post on a thread, the Notification is automatically set to “Watching”.

If you don’t want to be notified, click on it and change it to “Normal” or “Muted”.

1 Like

Subscribed to deep learning last month, learning data management course.
Q/A quiz was in Spanish. I need the course work in English.

Bill Marietta

sharing course material is against community guidelines

you should have saved it when you were doing the course

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.

Bill Marietta - Bill100