Skip to content

Commit 5282bef

Browse files
authored
DOC: Proper alignment of column names #40355 (#40358)
1 parent f58e836 commit 5282bef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/strings/accessor.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1925,13 +1925,13 @@ def get_dummies(self, sep="|"):
19251925
Examples
19261926
--------
19271927
>>> pd.Series(['a|b', 'a', 'a|c']).str.get_dummies()
1928-
a b c
1928+
a b c
19291929
0 1 1 0
19301930
1 1 0 0
19311931
2 1 0 1
19321932
19331933
>>> pd.Series(['a|b', np.nan, 'a|c']).str.get_dummies()
1934-
a b c
1934+
a b c
19351935
0 1 1 0
19361936
1 0 0 0
19371937
2 1 0 1

0 commit comments

Comments
 (0)