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

Arguement name fix

    XMLWordPrintableJSON

    Details

    • Type: Documentation
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.2, 2.3.0
    • Fix Version/s: 2.4.0
    • Component/s: Documentation
    • Labels:

      Description

      Doc String of `withColumnRenamed` has a wrongly marked argument.

       

          def withColumnRenamed(self, existing, new):
              """Returns a new :class:`DataFrame` by renaming an existing column.
              This is a no-op if schema doesn't contain the given column name.
              :param existing: string, name of the existing column to rename.
              :param col: string, new name of the column.
              >>> df.withColumnRenamed('age', 'age2').collect()
              [Row(age2=2, name=u'Alice'), Row(age2=5, name=u'Bob')]
              """

      Variable is `new` in argument list and `col` in the doc string.

        Attachments

          Activity

            People

            • Assignee:
              animenon Anirudh
              Reporter:
              animenon Anirudh
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1m
                1m
                Remaining:
                Remaining Estimate - 1m
                1m
                Logged:
                Time Spent - Not Specified
                Not Specified