Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.0, 1.6.0, 2.0.0, 2.1.0, 2.2.0
    • Fix Version/s: 2.2.0
    • Component/s: Documentation, PySpark, SQL
    • Labels:
      None

      Description

      Current docstring provides incorrect description of to_replace argument:

      If the value is a dict, then `value` is ignored and `to_replace` must be a mapping from column name (string) to replacement value.

      It looks like it has been copied from `na.fill` docs. In fact dict should provide mapping from value to replacement value.

      Moreover docs fail to explain some fundamental limitations (like lack of support for heterogeneous values) and some usage scenarios.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                zero323 Maciej Szymkiewicz
                Reporter:
                zero323 Maciej Szymkiewicz
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: