class pandas.DataFrame(data=None, index=None, columns=None, dtype=None, copy=None)
Example : -
d = {'col1': [9, 2], 'col2': [5, 4]}
df = pd.DataFrame(data=d)
Output :-
col1 col2
0 9 5
1 2 4