Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-43363][SQL][PYTHON] Make to call
astype
to the category type…
… only when the arrow type is not provided ### What changes were proposed in this pull request? Makes to call `astype` to the category type only when the arrow type is not provided. ### Why are the changes needed? Now that the minimum version of pyarrow is `1.0.0`, a workaround for pandas' categorical type for pyarrow can be removed if the arrow type is provided. > Note: This can be removed once minimum pyarrow version is >= 0.16.1 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Existing tests. Closes #41041 from ueshin/issues/SPARK-43363/categorical_type. Authored-by: Takuya UESHIN <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
- Loading branch information