This is because you need to reference the iterrows method to get access to the row iterator of a dataframe. Like this:import pandas as pd
df = pd.read_csv(“/home/user/data1”)
for row in df.iterrows():
print (row)
If you want to get a deeper understanding of data science and libraries used in it you can watch this youtube video: