Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-37551

Argument 1 to "rename" of "DataFrame" has incompatible type in pandas.LocIndexerLike.__getitem__

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.3.0
    • None
    • PySpark
    • None

    Description

      When I run dev mypy (mypy @ git+git://github.com/python/mypy.git@f1eb04ad379fa7492b88794d2c575461079b478a) against feba5ac32f2598f6ca8a274850934106be0db64d I get

      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]
      

      I didn't investigate if further yet, so it is not clear if it is a problem with annotations or bug in mypy.

      Attachments

        Activity

          People

            Unassigned Unassigned
            zero323 Maciej Szymkiewicz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: