# Select any row from a Dataframe using iloc[] and iat[] in Pandas in Python import pandas as pd   # Create the dataframedf = pd.DataFrame({'Date':['10/2/2011', '11/2/2011', '12/2/2011', '13/2/11'],                    'Event':['Music', 'Poetry', 'Theatre', 'Comedy'],                    'Cost':[10000, 5000, 15000, 2000]})# Create an empty listRow_list =[]   # Iterate over each rowfor i in range((df.shape[0])):       # Using iloc to access the values of     # the current row denoted by "i"    Row_list.append(list(df.iloc[i, :]))   # Print the first 3 elementsprint(Row_list[:3])