Skip to content

Commit

Permalink
docs: add "similar to pandas ..." to docstrings
Browse files Browse the repository at this point in the history
make these more easily findable/understandable
by pandas users
  • Loading branch information
NickCrews authored and cpcloud committed Oct 4, 2023
1 parent 735bbd0 commit cd7be29
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ibis/expr/types/relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ def __contains__(self, name: str) -> bool:
def cast(self, schema: SupportsSchema) -> Table:
"""Cast the columns of a table.
Similar to `pandas.DataFrame.astype`.
::: {.callout-note}
## If you need to cast columns to a single type, use [selectors](./selectors.qmd).
:::
Expand Down Expand Up @@ -728,6 +730,8 @@ def group_by(
) -> GroupedTable:
"""Create a grouped table expression.
Similar to SQL's GROUP BY statement, or pandas .groupby() method.
Parameters
----------
by
Expand Down

0 comments on commit cd7be29

Please sign in to comment.