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:954–962  ·  view source on GitHub ↗
(all_columns)

Source from the content-addressed store, hash-verified

952
953
954def _check_data_column_metadata_consistency(all_columns):
955 # It can never be the case in a released version of pyarrow that
956 # c['name'] is None *and* 'field_name' is not a key in the column metadata,
957 # because the change to allow c['name'] to be None and the change to add
958 # 'field_name' are in the same release (0.8.0)
959 assert all(
960 (c['name'] is None and 'field_name' in c) or c['name'] is not None
961 for c in all_columns
962 )
963
964
965def _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