removed void data

This commit is contained in:
drfengze
2023-05-28 21:14:51 +09:00
parent 6247cfe207
commit 491fd6dd55
2 changed files with 12 additions and 1 deletions

11
2023_05_01_08_05_50.csv Normal file

File diff suppressed because one or more lines are too long

View File

@ -65,7 +65,7 @@ def read_files(f):
'''
with open(f) as csvfile:
data = list(csv.reader(csvfile)) # 读csv并转化为list
# data = np.array(data)
data = [[element for element in row if element != ''] for row in data] # 去掉每行的空字符
data = np.array(data, dtype=object) # 转化为np数组
data = [np.array(d) for d in data]
csvfile.close()