Skip to content

Commit 626a670

Browse files
author
samuel.oranyeli
committed
update example in docs
1 parent c3aa651 commit 626a670

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

janitor/functions/select.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,13 @@ def select_columns(
152152
153153
Exclude columns with the `DropLabel` class:
154154
>>> from janitor import DropLabel
155-
>>> df.select_columns(DropLabel(slice("name", "awake")), "conservation")
156-
brainwt bodywt conservation
157-
0 NaN 50.000 lc
158-
1 0.01550 0.480 NaN
159-
2 NaN 1.350 nt
160-
3 0.00029 0.019 lc
161-
4 0.42300 600.000 domesticated
155+
>>> df.select_columns(DropLabel(slice("name", "awake")))
156+
brainwt bodywt
157+
0 NaN 50.000
158+
1 0.01550 0.480
159+
2 NaN 1.350
160+
3 0.00029 0.019
161+
4 0.42300 600.000
162162
163163
Selection on MultiIndex columns:
164164
>>> d = {'num_legs': [4, 4, 2, 2],

0 commit comments

Comments
 (0)