We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f58e836 commit 5282befCopy full SHA for 5282bef
pandas/core/strings/accessor.py
@@ -1925,13 +1925,13 @@ def get_dummies(self, sep="|"):
1925
Examples
1926
--------
1927
>>> pd.Series(['a|b', 'a', 'a|c']).str.get_dummies()
1928
- a b c
+ a b c
1929
0 1 1 0
1930
1 1 0 0
1931
2 1 0 1
1932
1933
>>> pd.Series(['a|b', np.nan, 'a|c']).str.get_dummies()
1934
1935
1936
1 0 0 0
1937
0 commit comments