[SPARK-55293][PS][TESTS] Avoid using old offset aliases#54077
[SPARK-55293][PS][TESTS] Avoid using old offset aliases#54077ueshin wants to merge 3 commits intoapache:masterfrom
Conversation
JIRA Issue Information=== Sub-task SPARK-55293 === This comment was automatically generated by GitHub Actions |
|
? My repo doesn't link the build status back. https://github.com/ueshin/apache-spark/actions/runs/21533781589 |
|
I believe there is a difference between an offset alias and a period alias. For example, I think the difference is that, offset alias means the next point after this much time; whereas period alias means the span of this much time. |
|
@gaogaotiantian Good catch! |
|
Merged to master. |
### What changes were proposed in this pull request? This is a follow-up of #54077. Avoids more old offset aliases. ### Why are the changes needed? There are still some places using the old offset aliases. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Fixed the related tests. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #54095 from ueshin/issues/SPARK-55293/ye. Authored-by: Takuya Ueshin <ueshin@databricks.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
What changes were proposed in this pull request?
Avoid using old offset aliases.
"H"->"h""T"->"min""S"->"s""L"->"ms""U"->"us""Q"->"QE""Y"->"YE"https://pandas.pydata.org/docs/user_guide/timeseries.html#offset-aliases
Why are the changes needed?
#54018 fixed the offset alias
MtoME.There are other aliases that are deprecated in pandas 2.2 / removed in pandas 3.0.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Fixed the related tests.
Was this patch authored or co-authored using generative AI tooling?
No.