# Different ways to iterate over rows in Pandas Dataframe in Python # import pandas package as pdimport pandas as pd  # Define a dictionary containing students datadata = {'Name': ['Ankit', 'Amit', 'Aishwarya', 'Priyanka'],                'Age': [21, 19, 20, 18],                'Stream': ['Math', 'Commerce', 'Arts', 'Biology'],                'Percentage': [88, 92, 95, 70]}  # Convert the dictionary into DataFramedf = pd.DataFrame(data, columns = ['Name', 'Age', 'Stream', 'Percentage'])  print("Given Dataframe :\n", df)  print("\nIterating over rows using index attribute :\n")  # iterate through each row and select # 'Name' and 'Stream' column respectively.for ind in df.index:     print(df['Name'][ind], df['Stream'][ind])