pandas convert dataframe to lists code example
Example 1: pandas to list
df.values.tolist()
Example 2: how to convert a list to dataframe in python
import pandas as pd
from pandas import DataFrame
df = DataFrame(lst,columns=['num'])
df.values.tolist()
import pandas as pd
from pandas import DataFrame
df = DataFrame(lst,columns=['num'])