Created
May 29, 2019 07:34
-
-
Save beyoung/3079a34c7cf2c7903f925c992f5ac321 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from snappy import snappy_formats | |
method = snappy_formats.get_compress_function(snappy_formats.DEFAULT_FORMAT) | |
out_file = 'out_file.snappy' | |
with open('in_file.csv', 'r') as fr, open(out_file, 'w') as fw: | |
method(fr, fw) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment