python convert pandas.core.frame.dataframe to list code example Example: pandas to list df.values.tolist()