def write_compressed(path, content):
    with gzip.open(path, 'wb') as f:
        f.write(content)
Write a compressed (gzipped) file to `path`.
dataset/ETHPy150Open quantopian/zipline/zipline/testing/core.py/write_compressed