Panda dataframe take column and append as new rows efficiently

前端 未结 0 1962
臣服心动
臣服心动 2021-01-14 19:43

If I have a df:

df = pd.DataFrame(np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]), columns=[\'a\', \'b\', \'c\'])

and wish to take the second col

相关标签:
回答
  • 消灭零回复
提交回复
热议问题