how to turn dataframe into a list code example
Example 1: dataframe 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'])