How to get the first column of a pandas DataFrame as a Series?

前端 未结 6 1518
花落未央
花落未央 2020-12-12 11:36

I tried:

x=pandas.DataFrame(...)
s = x.take([0], axis=1)

And s gets a DataFrame, not a Series.

6条回答
提交回复
热议问题