Answers for "pandas syntax for 2 columns from a dataframe to a variable"

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
0

create dataframe from two variables

pd.DataFrame({'r': r, 's': s})

Out: 
    r   s
0   0   0
1   3   5
2   6  10
3   9  15
4  12  20
Posted by: Guest on January-19-2021

Code answers related to "pandas syntax for 2 columns from a dataframe to a variable"

Python Answers by Framework

Browse Popular Code Answers by Language