ibis-project / ibis

the portable Python dataframe library
https://ibis-project.org
Apache License 2.0
4.93k stars 580 forks source link

refactor: avoid exposing details like `copy` in the builder APIs #6775

Open cpcloud opened 1 year ago

cpcloud commented 1 year ago

What happened?

From @NickCrews in #6768:

Unrelated to this, but I noticed that the exposed API of the CaseBuilders is probably a little more than we want. We probably just want people to have access to .when(), .else_(), and .end(), but since CaseBuilder inherits from Concrete, users get type hint suggestions for .copy(), and the other Expr internals. But that is separate from this issue

What version of ibis are you using?

master

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

N/A

Relevant log output

No response

Code of Conduct

cpcloud commented 2 months ago

If we move to cases then this shouldn't be an issue anymore.