Answers for "how to create pandas dataframe with two columns"

6

merge two dataframes based on column

df_outer = pd.merge(df1, df2, on='id', how='outer') #here id is common column

df_outer
Posted by: Guest on July-27-2020
1

plotting two columns of a dataframe in python

df.plot(x='col_name_1', y='col_name_2', style='o')
Posted by: Guest on January-29-2021

Code answers related to "how to create pandas dataframe with two columns"

Python Answers by Framework

Browse Popular Code Answers by Language