2018-08-22から1日間の記事一覧

<pandas, Python> 条件にあった行を削除する。

条件conditionにあった行Rowを削除dropする。 まずは、お見本データフレームDataFrame作成。 In [54]: data=''' ...: 1 2 3 4 5 ...: a b c d e ...: f g h i j ...: k l m n o ...: ''' In [55]: df = pd.read_table(io.StringIO(data), sep=' ') In [56]: …

<gif> 忍者のgif

gif

いいの見つけたので、メモ。 The Ninja Text Generator - Let the ninja write your text