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:
https://github.com/qri-io/starlib/blob/master/encoding/csv/testdata/test.star
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:
SHEET_URL = “”
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)