Pandas 構文メモ


目的

たまに使う構文をさっと使えるようにメモ

特定の文字列を含む

df['xxx'].str.contains('yyy')

strがないとエラーになる

行を繋げる

pd.concat(['xxx', 'yyy'])

[ ]がないとエラーになる

first argument must be an iterable of pandas objects, you passed an object of type "DataFrame"