return b"bool:0"
elif util.is_type(obj, "pandas.core.frame.Series"):
import pandas as pd
return pd.util.hash_pandas_object(obj).sum()
elif util.is_type(obj, "pandas.core.frame.DataFrame"):
import pandas as pd
if len(obj) >= PANDAS_ROWS_LARGE:
After Change
except TypeError:
// Use pickle if pandas cannot hash the object for example if
// it contains unhashable objects.
return pickle.dumps(obj, pickle.HIGHEST_PROTOCOL)
elif util.is_type(obj, "numpy.ndarray"):
h = hashlib.new(self.name)
self._update(h, obj.shape)