Yikun opened a new pull request, #36357:
URL: https://github.com/apache/spark/pull/36357

   ### What changes were proposed in this pull request?
   This patch refresh categories.dtype when astype('category')
   
   
   ### Why are the changes needed?
   categories.dtype is not refreshed before, follow pandas latest version 
behavior
   
   ### Does this PR introduce _any_ user-facing change?
   Yep, and follow pandas behavior
   
   
   ### How was this patch tested?
   - BooleanExtensionOpsTest.test_astype
   - StringExtensionOpsTest.test_astype
   - FractionalExtensionOpsTest.test_astype (new added)
   
   passed with pandas 1.4


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to