In[19]:df.groupby('c').sum()[('a','b')]Out[19]:c0713255768716811Name: (a,b),dtype:int64 on Nov 13, 2018 I don't disagree here. There is a difference when selecting only one column (specifically returning a Series vs a DataFrame) but when selecting multiple columns it would be ...
Remember from earlier in this tutorial when I explained the syntax: when we use the Pandas loc method to retrieve data, we can refer to a row label and a column label inside of the brackets. In the codecountry_data_df.loc['USA',:], ‘USA‘ is the row label and the colon is funct...