2019-03-29から1日間の記事一覧
pandasのデータをcsv形式にして保存するときに、 indexを含めないようにする方法。 以下のように、 index引数をFalseにすれば良い。 df.to_csv("test.csv", index=False)
tailメソッドを用いる。 引数に先頭から何番目の要素を取り出すかを指定する df.tail(1)
headメソッドを用いれば良い。 引数に先頭から何番目の要素かを指定 df.head(1)
エラー === 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のデータを単純に逆順にする方法 df.iloc[::-1]