I have a problem with the csv module in python.
This is the code I've written to parse my csv
def parse(data):
data_delim = data.split("\n")
data_list = csv.reader(data_delim)
return data_list
The problem I am encountering is the following:
print(data_list[Enum.check_name(skill)][1])
Throws this error
_csv.reader' object is not subscriptable
I have a ghetto solution for this below, but I'd rather use something similar to the code above, does anyone have a solution to this?
i = 0
for a in data_list:
if i == Enum.check_name(skill):
print(a[1])
i += 1