python get dataframe column value code example Example 1: how to get value from dataframe pandas sub_df.iloc[0] Example 2: pandas column value df.col.values