From 4832f42ccca58379e6e722ef16f4ef1cf9357eda Mon Sep 17 00:00:00 2001 From: Jeff Reback Date: Tue, 25 Apr 2017 05:53:37 -0400 Subject: [PATCH] PERF: use StringHashtable in data algos xref #16107 --- pandas/core/algorithms.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 3df82b6c13259..a745ec616eda8 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -216,10 +216,7 @@ def _get_data_algo(values, func_map): # its cheaper to use a String Hash Table than Object if lib.infer_dtype(values) in ['string']: - try: - f = func_map['string'] - except KeyError: - pass + ndtype = 'string' f = func_map.get(ndtype, func_map['object'])