Explore Courses Blog Tutorials Interview Questions
0 votes
in Machine Learning by (19k points)

Hi. Please help me solve this error. I am trying to print row values

import pandas as pd

df = pd.read_csv(“/home/user/data1”)

for row in df.iterrows():

    print (row['Email'])

1 Answer

0 votes
by (33.1k points)

This error comes when you can't get row information using row["pool_number"]

You should simply use this method to retrieve the value by index number:


Hope this answer helps you!

Thus, Linear Regression and Machine Learning Course, both are related. If you want to know more about this course study Machine Learning Tutorials.

You can refer to our Python online course for more information.

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

30.5k questions

32.5k answers


108k users

Browse Categories