I have a DataFrame looking like this:
28 91 182
Date
2017-09-07 0.97 1.05 1.15
2017-09-08 0.95 1.04 1.14
2017-09-11 0.96 1.06 1.16
2017-09-12 0.99 1.04 1.16
2017-09-13 0.99 1.04 1.16
From this DataFrame i would like to get a list of the values of the last row.
[0.99, 1.04, 1.16]
I attempted to use
np.array(tbill.iloc[-1:].values).tolist()
which returns
[[0.99, 1.04, 1.16]]
but feels overly complicated.
Is there a more simple way to do this?
np.array(tbill.iloc[-1:].values).tolist()[0](but answer below is better).