雑多な技術系メモ

自分用のメモ。内容は保証しません。よろしくお願いします。

2019-03-29から1日間の記事一覧

pandasのto_csvのindex

pandasのデータをcsv形式にして保存するときに、 indexを含めないようにする方法。 以下のように、 index引数をFalseにすれば良い。 df.to_csv("test.csv", index=False)

pandasで最後の行を取り出す

tailメソッドを用いる。 引数に先頭から何番目の要素を取り出すかを指定する df.tail(1)

pandasで最初の行を取り出す

headメソッドを用いれば良い。 引数に先頭から何番目の要素かを指定 df.head(1)

firebaseでデプロイする際のエラーと対処

エラー === Deploying to 'test'... i deploying functions, hosting i functions: ensuring necessary APIs are enabled... ✔ functions: all necessary APIs are enabled i functions: preparing functions directory for uploading... Error: Error parsi…

pandasでデータを逆順に

pandasのデータを単純に逆順にする方法 df.iloc[::-1]