pandas syntax for 2 columns from a dataframe to a variable code example
Example 1: plotting two columns of a dataframe in python
df.plot(x='col_name_1', y='col_name_2', style='o')
Example 2: 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