IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed

이 에러 어떻게 해결해야하나요..??

import matplotlib.pyplot as plt
import numpy as np

data = np.loadtxt('20221101_20221130_download.csv',dtype=str,delimiter=';',skiprows=1)

temp = data[:,4].asypte(float)
pm25 = data[:,2].astype(float)
co2 = data[:,3].astype(float)
rh = data[:,6].astype(float)

tiime = np.arrange(288) *5./60.

fig, axs = plt.subplots(2,2)

n = 0
ax = axs.flat[n]
ax.scatter(temp,pm25,c=time)
ax.set_xlabel('temperature ($^\circ$C)')
ax.set_ylabel('PM$_{2.5}$ (ug/m3)')

n += 1
ax = axs.flat[n]
ax.scatter(temp,c02,c=time)
ax.set_xlabel('temperature ($^\circ$C)')
ax.set_ylabel('CO$_2$ (ppm)')

n += 1
ax = axs.flat[n]
ax.scatter(temp,rh,c=time)
ax.set_xlabel('temperature ($^\circ$C)')
ax.set_ylabel('RH (%)')

n = 0
ax = axs.flat[n]
ax.scatter(c02,RH,c=time)
ax.set_xlabel('CO$_2$ (ppm)')
ax.set_ylabel('RH (%)')

fig.tight_layout()
plt.show()

참고로 csv 파일 일부는 이렇습니다.
time,PM10(ug/m3),PM2.5(ug/m3),CO2(ppm),VOC(ppb),Temperature,RH(%),noise(dB),CAI(cici)
2022-11-01 00:00:00,17,10,504,436,17.9,48,72,93
2022-11-01 00:01:00,17,10,499,435,17.9,48,73,93
2022-11-01 00:02:00,17,10,502,435,17.9,48,73,93
2022-11-01 00:03:00,17,10,503,432,17.9,48,73,93
2022-11-01 00:04:00,18,10,503,433,17.9,48,73,93
2022-11-01 00:05:00,18,10,498,433,17.9,48,73,93
2022-11-01 00:06:00,17,10,505,433,17.9,48,73,93
2022-11-01 00:07:00,18,10,499,432,17.9,48,73,93
2022-11-01 00:08:00,17,10,497,434,17.9,48,73,94
2022-11-01 00:09:00,17,10,505,432,17.9,48,73,93

kkjkk08 745

2022년 12월 8일 6:21 오후

목록으로