jorisvandenbossche commented on code in PR #51151:
URL: https://github.com/apache/arrow/pull/51151#discussion_r3924881092


##########
python/pyarrow/parquet/core.py:
##########
@@ -1592,13 +1593,12 @@ def read(self, columns=None, use_threads=True, 
use_pandas_metadata=False):
             use_threads=use_threads
         )
 
-        # if use_pandas_metadata, restore the pandas metadata (which gets
-        # lost if doing a specific `columns` selection in to_table)
-        if use_pandas_metadata:
-            if metadata and b"pandas" in metadata:

Review Comment:
   If `metadata` would come from `metadata = self.schema.metadata`, it means it 
already had a "pandas" key, and there is no need to add it back here 
(`to_table()` does not (or no longer) loose the metadata)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to