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

Function _check_data_column_metadata_consistency

python/pyarrow/pandas_compat.py:939–947  ·  view source on GitHub ↗
(all_columns)

Source from the content-addressed store, hash-verified

937
938
939def _check_data_column_metadata_consistency(all_columns):
940 # It can never be the case in a released version of pyarrow that
941 # c['name'] is None *and* 'field_name' is not a key in the column metadata,
942 # because the change to allow c['name'] to be None and the change to add
943 # 'field_name' are in the same release (0.8.0)
944 assert all(
945 (c['name'] is None and 'field_name' in c) or c['name'] is not None
946 for c in all_columns
947 )
948
949
950def _deserialize_column_index(block_table, all_columns, column_indexes):

Callers 1

table_to_dataframeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected