Merge pull request #1 from Drfengze/main

removed void data
This commit is contained in:
tangchao0503
2023-05-29 11:09:36 +08:00
committed by GitHub
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()