kumarn opened a new pull request, #42183: URL: https://github.com/apache/spark/pull/42183
### What changes were proposed in this pull request? Changes dtype for datetime properties to be inline with pandas 2.0.0. Please see for more information https://pandas.pydata.org/docs/whatsnew/v2.0.0.html Enabled corresponding tests that were skipped during the update. ### Why are the changes needed? To be fully compliant with pandas 2.0 ### Does this PR introduce _any_ user-facing change? Yes. Previously dtype for the updated properties (year, month, day, hour, minute, second, microsecond, dayofweek, dayofyear, quarter, daysinmonth) was int64, and after this change the dtype will be in32. Prior to the change ```python import pandas as pd import pyspark.pandas as ps series = ps.Series(pd.date_range("2012-1-1 12:45:31", periods=3, freq="M")) series.dt.dayofweek #Output 0 1 1 2 2 5 dtype: int64 ``` After this commit ```python import pandas as pd import pyspark.pandas as ps series = ps.Series(pd.date_range("2012-1-1 12:45:31", periods=3, freq="M")) series.dt.dayofweek #Output 0 1 1 2 2 5 dtype: int32 ``` ### How was this patch tested? enabled tests that were skipped, and updated doctests. -- 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]
