pd remove column by index code example Example: python pandas drop column by index df.drop(a_dataframe.columns[0], axis=1, inplace=True)