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

Method test_struct_metadata

python/pyarrow/tests/test_pandas.py:623–627  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

621 assert data_column['numpy_type'] == 'object'
622
623 def test_struct_metadata(self):
624 df = pd.DataFrame({'dicts': [{'a': 1, 'b': 2}, {'a': 3, 'b': 4}]})
625 table = pa.Table.from_pandas(df)
626 pandas_metadata = table.schema.pandas_metadata
627 assert pandas_metadata['columns'][0]['pandas_type'] == 'object'
628
629 def test_decimal_metadata(self):
630 expected = pd.DataFrame({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected