You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Chuck Connell (Jira)" <ji...@apache.org> on 2021/11/01 21:03:00 UTC

[jira] [Created] (SPARK-37186) pyspark.pandas should support tseries.offsets

Chuck Connell created SPARK-37186:
-------------------------------------

             Summary: pyspark.pandas should support tseries.offsets
                 Key: SPARK-37186
                 URL: https://issues.apache.org/jira/browse/SPARK-37186
             Project: Spark
          Issue Type: Improvement
          Components: PySpark
    Affects Versions: 3.2.0
            Reporter: Chuck Connell


In regular pandas you can use pandas.offsets to create a time delta. This allows a line like
{quote}this_period_start = OVERALL_START_DATE + pd.offsets.Day(NN)
{quote}
But this does not work in pyspark.pandas.

There are good workarounds, such as datetime.timedelta(days=NN), but pandas programmers would like to move code to pyspark without changing it.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org