How to get column index number by column name in pandas November 18, 2021 by admin print(df.columns.get_loc(“column_name”))