0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Python】pandasのファイルの読み書きに関して

Posted at

Excel形式は読み書きの両方に対応しています。

HTML形式の読み込みは、table要素をDataFrameとして読み込む。

CSV形式は読み書きの両方に対応しています。

データ量が多いときの書き出しは、CSV形式よりpickle形式のほうが速い。

DataFrameをCSV形式で書き出す場合は、カンマ区切りに変換する必要があります。変換コストが発生するため、データ量が多い場合は処理に時間がかかります。

その点、pickle形式はDataFrameのオブジェクトをbytes型のまま保存します。DataFrameを丸ごとパッキングするような処理のため、高速に読み書きできます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?