Skip to content

Commit de85057

Browse files
committed
DOC: Proper alignment of column names pandas-dev#40355
1 parent 3140ef1 commit de85057

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
@@ -1913,13 +1913,13 @@ def get_dummies(self, sep="|"):
19131913
Examples
19141914
--------
19151915
>>> pd.Series(['a|b', 'a', 'a|c']).str.get_dummies()
1916-
a b c
1916+
a b c
19171917
0 1 1 0
19181918
1 1 0 0
19191919
2 1 0 1
19201920
19211921
>>> pd.Series(['a|b', np.nan, 'a|c']).str.get_dummies()
1922-
a b c
1922+
a b c
19231923
0 1 1 0
19241924
1 0 0 0
19251925
2 1 0 1

0 commit comments

Comments
 (0)