LoginSignup
20
18

More than 5 years have passed since last update.

pandasでtsvを読み込む

Last updated at Posted at 2018-10-25

pandasでcsvを読み込むときはpandas.read_csv('pass/to/csv')を使用する。
ところが、tsvを読み込むにはpandas.read_tsv('pass/to/tsv')ではなく以下のようにする。

pandas.read_csv('pass/to/tsv', delimiter='\t')

ちょっと紛らわしいので注意。

参考: http://www.mwsoft.jp/programming/numpy/pandas_csv.html

20
18
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
20
18