I have this code:
df = pd.DataFrame(data, columns = ['Name','New_addy','PHONE1','PHONE2','EMAIL'])
def QuestioningMech(df):
for x in df:
print(df[x])
So I am trying to iterate through the DataFrame, but this code iterates over columns. How do I iterate over rows instead?