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

Method add_key_value_metadata

python/pyarrow/parquet/core.py:1239–1250  ·  view source on GitHub ↗

Add key-value metadata to the file. This will overwrite any existing metadata with the same key. Parameters ---------- key_value_metadata : dict Keys and values must be string-like / coercible to bytes.

(self, key_value_metadata)

Source from the content-addressed store, hash-verified

1237 self.file_handle.close()
1238
1239 def add_key_value_metadata(self, key_value_metadata):
1240 """
1241 Add key-value metadata to the file.
1242 This will overwrite any existing metadata with the same key.
1243
1244 Parameters
1245 ----------
1246 key_value_metadata : dict
1247 Keys and values must be string-like / coercible to bytes.
1248 """
1249 assert self.is_open
1250 self.writer.add_key_value_metadata(key_value_metadata)
1251
1252
1253def _get_pandas_index_columns(keyvalues):

Calls

no outgoing calls