Skip to content

Instantly share code, notes, and snippets.

@Mattamorphic
Created April 15, 2021 05:57
Show Gist options
  • Save Mattamorphic/4c6688f603ff81a2eed5195e04e6880b to your computer and use it in GitHub Desktop.
Save Mattamorphic/4c6688f603ff81a2eed5195e04e6880b to your computer and use it in GitHub Desktop.
Decompression PYthon
from io import StringIO
import csv
import gzip
with gzip.open(filename, mode="rt") as g:
csvobj = csv.reader(g)
for line in csvobj:
print(line)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment