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

Function test_empty_dataframe

python/pyarrow/tests/interchange/test_conversion.py:480–484  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

478
479
480def test_empty_dataframe():
481 schema = pa.schema([('col1', pa.int8())])
482 df = pa.table([[]], schema=schema)
483 dfi = df.__dataframe__()
484 assert pi.from_dataframe(dfi) == df

Callers

nothing calls this directly

Calls 2

__dataframe__Method · 0.80
schemaMethod · 0.45

Tested by

no test coverage detected