sohailshk commented on PR #55678:
URL: https://github.com/apache/arrow/pull/55678#issuecomment-7057218496

   I pushed one more commit. Restoring the extension dtype from the metadata 
could also turn an index level that was replaced after `from_pandas` (for 
example a `str`/`string` level swapped for integers with `set_column`) into 
strings, where main returns the integers. The string dtype is now only restored 
for index levels whose Arrow type is still string-like (string, binary or 
null), so replaced levels keep their own type. A new test covers this (6 cases, 
which fail without the commit); the pandas, parquet pandas and feather tests 
otherwise give the same results as before.
   


-- 
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