how to get last column values only in dataframe in python code example Example: get last column pandas df.iloc[:,-1:]