Answers for "make dataframe from dataframe pandas"

3

create Pandas Data Frame in Python

d = {'col1': [1, 2], 'col2': [3, 4]}
>>> df = pd.DataFrame(data=d)
>>> df
   col1  col2
0     1     3
1     2     4
Posted by: Guest on November-21-2021

Code answers related to "make dataframe from dataframe pandas"

Python Answers by Framework

Browse Popular Code Answers by Language