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