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

Function json_responder

pandas/tests/io/test_http_headers.py:42–43  ·  view source on GitHub ↗
(df)

Source from the content-addressed store, hash-verified

40
41
42def json_responder(df):
43 return df.to_json().encode("utf-8")
44
45
46def gz_json_responder(df):

Callers 1

gz_json_responderFunction · 0.85

Calls 2

encodeMethod · 0.80
to_jsonMethod · 0.80

Tested by

no test coverage detected