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