I am a new python DF member, and I have a Excel file table with two columns that I need to iterate through the rows. If the value in the "amount" column for a row is zero, I want to extract the corresponding value from the first column and store it in a list. import pandas as...
(data, columns = ['Name','Age','Stream','Percentage'])print("Given Dataframe :\n", df)print("\nIterating over rows using iterrows() method :\n")# iterate through each row and select# 'Name' and 'Age' column respectively.forindex, rowindf.iterrows():print(row["Name"], row["Age...
(data, columns = ['Name','Age','Stream','Percentage'])print("Given Dataframe :\n", df)print("\nIterating over rows using iterrows() method :\n")# iterate through each row and select# 'Name' and 'Age' column respectively.forindex, rowindf.iterrows():print(row["Name"], row["Age...