Skip to content

Commit

Permalink
CLN: Remove PY2 compat code (#32677)
Browse files Browse the repository at this point in the history
Co-authored-by: MomIsBestFriend <>
  • Loading branch information
ShaharNaveh authored Mar 13, 2020
1 parent 25e2f86 commit 059f9bf
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pandas/core/reshape/reshape.py
Original file line number Diff line number Diff line change
Expand Up @@ -985,12 +985,7 @@ def get_empty_frame(data) -> DataFrame:
if prefix is None:
dummy_cols = levels
else:

# PY2 embedded unicode, gh-22084
def _make_col_name(prefix, prefix_sep, level) -> str:
return f"{prefix}{prefix_sep}{level}"

dummy_cols = [_make_col_name(prefix, prefix_sep, level) for level in levels]
dummy_cols = [f"{prefix}{prefix_sep}{level}" for level in levels]

index: Optional[Index]
if isinstance(data, Series):
Expand Down

0 comments on commit 059f9bf

Please sign in to comment.