How to select the last column of dataframe December 30, 2022 by Tarik Use iloc and select all rows (:) against the last column (-1): df.iloc[:,-1:]