You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Maciej Szymkiewicz (Jira)" <ji...@apache.org> on 2021/12/05 15:09:00 UTC
[jira] [Commented] (SPARK-37551) Argument 1 to "rename" of "DataFrame" has incompatible type in pandas.LocIndexerLike.__getitem__
[ https://issues.apache.org/jira/browse/SPARK-37551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17453626#comment-17453626 ]
Maciej Szymkiewicz commented on SPARK-37551:
--------------------------------------------
cc [~itholic] [~ueshin], since you're both active in this module.
> Argument 1 to "rename" of "DataFrame" has incompatible type in pandas.LocIndexerLike.__getitem__
> -------------------------------------------------------------------------------------------------
>
> Key: SPARK-37551
> URL: https://issues.apache.org/jira/browse/SPARK-37551
> Project: Spark
> Issue Type: Bug
> Components: PySpark
> Affects Versions: 3.3.0
> Reporter: Maciej Szymkiewicz
> Priority: Minor
>
> When I run dev mypy ({{mypy @ git+git://github.com/python/mypy.git@f1eb04ad379fa7492b88794d2c575461079b478a}}) against [{{feba5ac32f2598f6ca8a274850934106be0db64d}}|https://github.com/apache/spark/commit/feba5ac32f2598f6ca8a274850934106be0db64d] I get
> {code:python}
> python/pyspark/pandas/indexing.py:558: error: Argument 1 to "rename" of "DataFrame" has incompatible type "Union[Any, Tuple[Any, ...]]"; expected "Union[Dict[Any, Any], Callable[[Any], Any]]" [arg-type]
> {code}
> I didn't investigate if further yet, so it is not clear if it is a problem with annotations or bug in mypy.
--
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