def _get_hashtable_algo(values):
values, dtype, ndtype = _ensure_data(values)<EOL>if ndtype == '<STR_LIT:object>':<EOL><INDENT>if lib.infer_dtype(values, skipna=False) in ['<STR_LIT:string>']:<EOL><INDENT>ndtype = '<STR_LIT:string>'<EOL><DEDENT>else:<EOL><INDENT>ndtype = '<STR_LIT:object>'<EOL><DEDENT><DEDENT>htable, table = _hashtables[ndtype]<EOL>return (htable, table, values, dtype, ndtype)<EOL>
Parameters
----------
values : arraylike

Returns
-------
tuples(hashtable class,
       vector class,
       values,
       dtype,
       ndtype)