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 me seems unweildy, and un-pythonic (and slow?).
What is the easiest way to select the data for the last column in a pandas dataframe without specifying the name of the column?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…