Skip to content

Commit 6bc9e15

Browse files
deepyamangforsyth
authored andcommitted
docs: replace deprecated relabels with renames
1 parent 11e03fa commit 6bc9e15

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/tutorials/ibis-for-pandas-users.qmd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,17 +242,17 @@ mutated
242242
### Renaming columns
243243

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

247247

248248
```{python}
249-
relabeled = t.relabel(
249+
renamed = t.rename(
250250
dict(
251-
one="a",
252-
two="b",
251+
a="one",
252+
b="two",
253253
)
254254
)
255-
relabeled
255+
renamed
256256
```
257257

258258
## Selecting rows

0 commit comments

Comments
 (0)