line_no += 1
print(line_no, "total lines in features csv.")
print(len(data_dict["features"]))
if len(indices_for_deletion) == 1:
del data_dict["features"][indices_for_deletion[0]]
del data_dict["classes"][indices_for_deletion[0]]
print(len(data_dict["features"]))
After Change
if len(line) == 1:
indices_for_deletion.append(i)
line_no += 1
indices_for_deletion.sort(reverse=True)
for index in indices_for_deletion:
del data_dict["features"][index]
del data_dict["classes"][index]
return