From e3ecdbaa456646feb0cec7e404706832558f3b63 Mon Sep 17 00:00:00 2001 From: Douglas McNeil Date: Tue, 25 Feb 2014 16:29:55 -0500 Subject: [PATCH] CLN: remove vestigial count code --- pandas/core/algorithms.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 9c972c9795c47..f20c316393244 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -67,15 +67,6 @@ def unique(values): return _hashtable_algo(f, values.dtype) -# def count(values, uniques=None): -# f = lambda htype, caster: _count_generic(values, htype, caster) - -# if uniques is not None: -# raise NotImplementedError -# else: -# return _hashtable_algo(f, values.dtype) - - def _hashtable_algo(f, dtype): """ f(HashTable, type_caster) -> result @@ -88,16 +79,6 @@ def _hashtable_algo(f, dtype): return f(htable.PyObjectHashTable, com._ensure_object) -def _count_generic(values, table_type, type_caster): - from pandas.core.series import Series - - values = type_caster(values) - table = table_type(min(len(values), 1000000)) - uniques, labels = table.factorize(values) - - return Series(counts, index=uniques) - - def _match_generic(values, index, table_type, type_caster): values = type_caster(values) index = type_caster(index)