removed void data
This commit is contained in:
11
2023_05_01_08_05_50.csv
Normal file
11
2023_05_01_08_05_50.csv
Normal file
File diff suppressed because one or more lines are too long
@ -65,7 +65,7 @@ def read_files(f):
|
|||||||
'''
|
'''
|
||||||
with open(f) as csvfile:
|
with open(f) as csvfile:
|
||||||
data = list(csv.reader(csvfile)) # 读csv并转化为list
|
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(data, dtype=object) # 转化为np数组
|
||||||
data = [np.array(d) for d in data]
|
data = [np.array(d) for d in data]
|
||||||
csvfile.close()
|
csvfile.close()
|
||||||
|
Reference in New Issue
Block a user