Код: Выделить всё
index timestamp polarisation current (A) signal (V) head temperature (°C) head relat.humidity (%RH) MUGS temperature (°C) laser voltage (V) laser current (A) driver temperature (°C)
0 16:11:24 0.4 0.0006019 26.51 43.5 32.0 11.37 0.3922 26.5
1 16:11:29 0.402 0.0006286 26.51 43.5 32.5 11.41 0.3972 31.5
2 16:11:34 0.404 0.0005828 26.51 43.5 32.5 11.42 0.4048 32.5
3 16:11:38 0.406 0.0006139 26.51 43.5 32.5 11.39 0.3984 32.5
Я прочитал этот файл с помощью :
Код: Выделить всё
with open(universal_path,'rt'):
values = np.genfromtxt( universal_path, delimiter="", skip_header = 1, encoding='unicode_escape')

Я пытался написать dtype = None. Но теперь он читает только первый столбец текстового файла:

Я пытался написать dtype = [int, str, float, float, float, float, float, float, float, float]. Но он также читает только первый столбец.
Как мне прочитать второй столбец как строку, пожалуйста?
Подробнее здесь: https://stackoverflow.com/questions/791 ... ith-floats
Мобильная версия