Exercise 4 in Quantecon Datascience: Index

Hi,

The question mentions df4 and df6, but both of them are nowhere to be found on this lecture. Therefore, I am not sure what to do for * use pd.IndexSlice to extract the same data from df6*. Not sure exactly since extracting same data is simple, i.e., using .values attribute yields all entries as ‘True’. But for representation, I have the column name of the chosen countries hanging around in wdi2, or the column names swapped. However, I think the gist of the question is just to get the same values, not the representation, no?

My guess is to extract the same data as in the commented cells in this question, isn’t it? Probably wdi used to be df4 and wdi2 used to be df6?

Thanks very much!

Probably wdi used to be df4 and wdi2 used to be df6?

Yes

1 Like