I have a data set following columns:
Country
Gdp
Life Satisfaction
I want to group on country and GDP. I want GDP col in a list names X and Life Satisfaction in list Y to create scatter plot.
Using this I am able to group:
df=dataSet.groupby(["Country","Gdp Per Capita"])
But df
is generic.DataFrame.GroupBy
How can I extend my code to take values in X and Y.