def _hash_scalar(val, encoding='<STR_LIT:utf8>', hash_key=None):
if isna(val):<EOL><INDENT>return np.array([np.iinfo(np.uint64).max], dtype='<STR_LIT>')<EOL><DEDENT>if getattr(val, '<STR_LIT>', None) is not None:<EOL><INDENT>if not isinstance(val, tslibs.Timestamp):<EOL><INDENT>val = tslibs.Timestamp(val)<EOL><DEDENT>val = val.tz_convert(None)<EOL><DEDENT>dtype, val = infer_dtype_from_scalar(val)<EOL>vals = np.array([val], dtype=dtype)<EOL>return hash_array(vals, hash_key=hash_key, encoding=encoding,<EOL>categorize=False)<EOL>
Hash scalar value

Returns
-------
1d uint64 numpy array of hash value, of length 1