Feb-15-2020, 02:05 PM
(This post was last modified: Feb-15-2020, 02:05 PM by new_to_python.)
Thanks. I am trying to reorder the columns of DataFrame in line[236] of Post #5 manually. I did:
A = df.unstack('state').stack('side') A = A[['Ohio', 'Colorado']]But I got ['Colorado'] not in index error. Could you please tell me how to fix it?