Skip to content

bug: replace errors, but substitute works #11379

Closed as not planned
Closed as not planned
@KronosTheLate

Description

@KronosTheLate

What happened?

This errors:

t = ibis.memtable({"c1": [1, 2]})
t["c1"].replace

While this runs:

t = ibis.memtable({"c1": [1, 2]})
t["c1"].substitute

If this is intentional, the docstrings for replace and substitute sure as frick dont seem to mention it. For substitute, we have:

This is similar to the pandas replace method.

While replace does not even mention substitute.

Is this expected? Is there actually a difference between the two functions, other than the added keyword argument for substitute?

What version of ibis are you using?

ibis-framework 10.5.0

What backend(s) are you using, if any?

No response

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIncorrect behavior inside of ibis

    Type

    No type

    Projects

    Status

    done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions