()
| 975 | |
| 976 | @pytest.mark.pandas |
| 977 | def test_ipc_zero_copy_numpy(): |
| 978 | df = pd.DataFrame({'foo': [1.5]}) |
| 979 | |
| 980 | batch = pa.RecordBatch.from_pandas(df) |
| 981 | sink = pa.BufferOutputStream() |
| 982 | write_file(batch, sink) |
| 983 | buffer = sink.getvalue() |
| 984 | reader = pa.BufferReader(buffer) |
| 985 | |
| 986 | batches = read_file(reader) |
| 987 | |
| 988 | data = batches[0].to_pandas() |
| 989 | rdf = pd.DataFrame(data) |
| 990 | assert_frame_equal(df, rdf) |
| 991 | |
| 992 | |
| 993 | @pytest.mark.pandas |
nothing calls this directly
no test coverage detected