how to print the last column of a dataframe using pandas code example Example: get last column pandas df.iloc[:,-1:]