サクサク読めて、アプリ限定の機能も多数!
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
U1and0 のブックマーク 2016/12/13 13:19
How to convert single-row pandas data frame to series?[pandas]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: int642016/12/13 13:19
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
このブックマークにはスターがありません。 最初のスターをつけてみよう!
stackoverflow.com2016/12/13
1 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /
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
U1and0 のブックマーク 2016/12/13 13:19
このブックマークにはスターがありません。
最初のスターをつけてみよう!
How to convert single-row pandas data frame to series?
stackoverflow.com2016/12/13
1 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /