get the last data in column pandas dataframe code example Example: get last column pandas df.iloc[:,-1:]