I have done some searching for the answer to this question, but all I can figure out is this:
df[df.columns[len(df.columns)-1]]
which to m
The question is: how to select the last column of a dataframe ? Appart @piRSquared, none answer the question.
the simplest way to get a dataframe with the last column is:
df.iloc[ :, -1:]