CSV parsing with encoding/csv.star?

I’m pulling my hair out… has anyone got CSV decoding to work?

I haven’t directly used the csv module but their sample code works without issue for me:


Perhaps share the data you’re trying to parse or any errors you’re getting?

1 Like

I ended up quitting the project because I couldn’t figure out how to visually display bar graphs and the data I’d retrieve from the google sheet I had (took multiple days and still didn’t get too far).

But yes, the code you posted should work, specifically something like this for anyone else who found this thread by searching the forum:


def main():
rep = http.get(SHEET_URL)
if rep.status_code != 200:
fail(“Request failed with status %d”, rep.status_code)

data = rep.body()
extracted_data = csv.read_all(data)