I have a pandas series which after printing looks like -
0 NaN
1 20.307
2 -16.879
3 4.598
4 21.978
5 -12.913
dtype: float64
I would like to convert the values in the second column to a list such that it looks like -
[0, 20.307, -16.879, 4.598, 21.978, -12.913]
I tried doing - my_series.iloc[:, 1] but i am getting the error -
pandas.core.indexing.IndexingError: Too many indexers
Can someone help? Thanks.