Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
reword comment
  • Loading branch information
MarcoGorelli committed Apr 18, 2020
commit 6a8456900bc8feca782b07d77e9bda1418f6e2ab
4 changes: 2 additions & 2 deletions pandas/core/reshape/reshape.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,8 +820,8 @@ def from_dummies(
" pass a value to `prefix` with which to name"
" the decoded columns."
)
# If no column contains `prefix_sep`, we add `prefix`_`prefix_sep` to
# each column.
# If no column contains `prefix_sep`, we prepend `prefix` and
# `prefix_sep` to each column.
out = data.rename(columns=lambda x: f"{prefix}{prefix_sep}{x}").copy()
columns_to_decode = out.columns
else:
Expand Down