Yikun opened a new pull request, #36355: URL: https://github.com/apache/spark/pull/36355
### What changes were proposed in this pull request? We added the categories setter since https://github.com/apache/spark/pull/33448 . But since https://github.com/pandas-dev/pandas/commit/126a19d038b65493729e21ca969fbb58dab9a408, pandas changes behavior, according to https://github.com/pandas-dev/pandas/issues/46820, categories setter is trying to modify an immutable object. ### Why are the changes needed? Make ci passed with pandas 1.4.x ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? test_categories_setter passed with 1.3.X and also 1.4.x -- 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]
