めもめも

このブログに記載の内容は個人の見解であり、必ずしも所属組織の立場、戦略、意見を代表するものではありません。

2015-01-02から1日間の記事一覧

pandasのDataFrameからのデータ選択

サンプル In [23]: df = DataFrame(np.arange(20).reshape(5,4), columns=[list('abcd')], index=['one','two','three','four','five']) In [24]: df Out[24]: a b c d one 0 1 2 3 two 4 5 6 7 three 8 9 10 11 four 12 13 14 15 five 16 17 18 19 Dictiona…