Skip to content

Commit

Permalink
docs: replace deprecated relabels with renames
Browse files Browse the repository at this point in the history
  • Loading branch information
deepyaman authored and gforsyth committed Dec 5, 2023
1 parent 11e03fa commit 6bc9e15
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/tutorials/ibis-for-pandas-users.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -242,17 +242,17 @@ mutated
### Renaming columns

In addition to replacing columns, you can rename them as well. This is done with
the `relabel` method which takes a dictionary containing the name mappings.
the `rename` method which takes a dictionary containing the name mappings.


```{python}
relabeled = t.relabel(
renamed = t.rename(
dict(
one="a",
two="b",
a="one",
b="two",
)
)
relabeled
renamed
```

## Selecting rows
Expand Down

0 comments on commit 6bc9e15

Please sign in to comment.