MCPcopy
hub / github.com/pandas-dev/pandas / gzip_bytes

Function gzip_bytes

pandas/tests/io/test_http_headers.py:27–31  ·  view source on GitHub ↗
(response_bytes)

Source from the content-addressed store, hash-verified

25
26
27def gzip_bytes(response_bytes):
28 with BytesIO() as bio:
29 with gzip.GzipFile(fileobj=bio, mode="w") as zipper:
30 zipper.write(response_bytes)
31 return bio.getvalue()
32
33
34def csv_responder(df):

Callers 2

gz_csv_responderFunction · 0.85
gz_json_responderFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected