CSV de String Python
csv_string = """a,b,c
d,e,f
g,h,i
"""
lines = csv_string.splitlines()
print(lines)
OUTPUT
['a,b,c', 'd,e,f', 'g,h,i']
reader = csv.reader(lines)
parsed_csv = list(reader)
print(parsed_csv)
OUTPUT
[['a', 'b', 'c'], ['d', 'e', 'f'], ['g', 'h', 'i']]
Lovely Lark