skiing_LAL10
@skiing_LAL10 (CHIKA)

Are you sure you want to delete the question?

Leaving a resolved question undeleted may help others!

numpy.loadtxtでheaderが表示されない.

>>>import numpy as np
>>>np.savetxt("test_header.csv", [1,2,3], header='hoge')
>>>data = np.loadtxt("test_header.csv", skiprows=0)
>>>print(data, type(data))
[1. 2. 3.] <class 'numpy.ndarray'>

環境

  • Python: 3.6.9
  • NumPy: 1.18.5

やりたいこと

headerで設定した'hoge'を抽出したい.

0

1Answer

Comments

  1. @skiing_LAL10

    Questioner

    ありがとうございます.

Your answer might help someone💌