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
No else
  • Loading branch information
Daniel Saxton authored and Daniel Saxton committed Feb 13, 2020
commit 4082ae3969de8e9c09e606b965fa2b172a573b5a
4 changes: 2 additions & 2 deletions pandas/core/arrays/string_.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ def _reduce(self, name, skipna=True, **kwargs):
return getattr(self[~na_mask], name)(skipna=False, **kwargs)
else:
return libmissing.NA
else:
raise TypeError(f"Cannot perform reduction '{name}' with string dtype")

raise TypeError(f"Cannot perform reduction '{name}' with string dtype")

def value_counts(self, dropna=False):
from pandas import value_counts
Expand Down