MCPcopy Create free account
hub / github.com/apache/arrow / test_do_get_ints_pandas

Function test_do_get_ints_pandas

python/pyarrow/tests/test_flight.py:1206–1213  ·  view source on GitHub ↗

Try a simple do_get call.

()

Source from the content-addressed store, hash-verified

1204
1205@pytest.mark.pandas
1206def test_do_get_ints_pandas():
1207 """Try a simple do_get call."""
1208 table = simple_ints_table()
1209
1210 with ConstantFlightServer() as server, \
1211 flight.connect(('localhost', server.port)) as client:
1212 data = client.do_get(flight.Ticket(b'ints')).read_pandas()
1213 assert list(data['some_ints']) == table.column(0).to_pylist()
1214
1215
1216def test_flight_do_get_dicts():

Callers

nothing calls this directly

Calls 6

simple_ints_tableFunction · 0.85
listFunction · 0.85
read_pandasMethod · 0.45
do_getMethod · 0.45
columnMethod · 0.45

Tested by

no test coverage detected