Skip to content

Commit a76b575

Browse files
author
y-p
committed
CLN: remove util.counter, duplicates compat
1 parent 82bcbb8 commit a76b575

File tree

2 files changed

+1
-301
lines changed

2 files changed

+1
-301
lines changed

pandas/core/series.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -1349,11 +1349,7 @@ def describe(self, percentile_width=50):
13491349
-------
13501350
desc : Series
13511351
"""
1352-
try:
1353-
from collections import Counter
1354-
except ImportError: # pragma: no cover
1355-
# For Python < 2.7, we include a local copy of this:
1356-
from pandas.util.counter import Counter
1352+
from pandas.compat import Counter
13571353

13581354
if self.dtype == object:
13591355
names = ['count', 'unique']

pandas/util/counter.py

-296
This file was deleted.

0 commit comments

Comments
 (0)