1) iloc vs loc iloc is to use integer index in dataframe. loc is to use category name in dataframe.import pandas as pd df = pd.read_csv('iris.csv') %To read csv file, use pandas.read_csv df.head(2)df_sub1 = df.loc[:, ['petal.length', 'petal.width', 'variety']] print(df_sub1.head(2)) df_sub2 = df.iloc[:, 2:] print(df_sub2.head(2)) 2) unique It is used to see what categories are included in specif..