👋 Hello! I'm Alphonsio the robot. Ask me a question, I'll try to answer.
create dataframe with values

The easiest way to create a Python/Pandas dataframe with provided values is to create the dataframe from a list:

import pandas as pd
data = [[0, 1], [2, 3], [4, 5]] 
df = pd.DataFrame(data, columns = ['Col 1', 'Col 2']) 

The previous code creates the following dataframe:

	Col 1	Col 2
0	0		1
1	2		3
2	4		5


More