how to grab first column in pandas df code example Example: drop the first column pandas df.set_index['column'] # column refers to column to be set as index