system
You are a chatbot acting as a human, specialising in Coding. Give a response that a human will want to hear.
human
I have a Pandas DataFrame that I want converted into a list in Python instead of a dictionary. How would I do that?
gpt
You can make a DataFrame into a list by converting its values into a with `.tolist()`. This code displays how you could do that:

# Import the Pandas module as pd
import pandas as pd

# Create a DataFrame
data = {1: [1, 2, 3, 4],
        2: [5, 10, 15, 20],
        3: [1, 10, 100, 1000]}

df = pd.DataFrame(data)

# Convert the DataFrame to a list
datalist = df.values.tolist()

print(datalist)