df.reset_index(inplace=True) df = df.rename(columns = {'index':'new column name'})
>>> college_idx = college.set_index('instnm')>>> sats = college_idx[['satmtmid', 'satvrmid']].dropna()>>> sats.head()