You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2022/03/24 02:27:00 UTC
[jira] [Commented] (SPARK-38638) AttributeError: module 'pyspark.pandas' has no attribute 'Timedelta'
[ https://issues.apache.org/jira/browse/SPARK-38638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17511554#comment-17511554 ]
Hyukjin Kwon commented on SPARK-38638:
--------------------------------------
For this, users should use `pd.Timedelta` instance. Scalar values are not distributed.
> AttributeError: module 'pyspark.pandas' has no attribute 'Timedelta'
> --------------------------------------------------------------------
>
> Key: SPARK-38638
> URL: https://issues.apache.org/jira/browse/SPARK-38638
> Project: Spark
> Issue Type: Bug
> Components: PySpark
> Affects Versions: 3.2.1
> Reporter: Prakhar Sandhu
> Priority: Major
>
> After replacing pandas library with pyspark.pandas, I tried to use the below function :
> {code:java}
> pd.Timedelta(days=30) {code}
> But received the below error :
> {code:java}
> AttributeError: module 'pyspark.pandas' has no attribute 'Timedelta' {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org