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 fa58390 commit b7a859bCopy full SHA for b7a859b
pandas/core/arrays/categorical.py
@@ -515,15 +515,15 @@ def get_dummies(
515
1 0 1 0
516
2 0 0 1
517
518
- >>> pd.Categorical(list('abcaa)).get_dummies()
+ >>> pd.Categorical(list('abcaa')).get_dummies()
519
a b c
520
0 1 0 0
521
522
523
3 1 0 0
524
4 1 0 0
525
526
- >>> pd.Categorical(list('abcaa)).get_dummies(drop_first=True)
+ >>> pd.Categorical(list('abcaa')).get_dummies(drop_first=True)
527
b c
528
0 0 0
529
1 1 0
0 commit comments