DataFrame to Series df = pd.DataFrame([list(range(5))], columns=["a{}".format(i) for i in range(5)]) >>> df.T.squeeze() a0 0 a1 1 a2 2 a3 3 a4 4 Name: 0, dtype: int64

U1and0U1and0 のブックマーク 2016/12/13 13:19

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

How to convert single-row pandas data frame to series?

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう