class_docstr: Wrapper class to allow pandas objects (DataFrames or Series) to be hashable
class_docstr_tok: ["Wrapper","class","to","allow","pandas","objects","(","DataFrames","or","Series",")","to","be","hashable"]
docstr: Initialize class
  
  Args:
      pandas_object (pandas.DataFrame|pandas.Series): pandas object
docstr_tok: ["Initialize","class","Args",":","pandas_object","(","pandas.DataFrame|pandas.Series",")",":","pandas","object"]
code: def __init__(self, pandas_object):
      """Initialize class
  
      Args:
          pandas_object (pandas.DataFrame|pandas.Series): pandas object
      """
  
      if not isinstance(pandas_object, (pd.DataFrame, pd.Series)):
          raise TypeError(
              "Can only wrap pandas DataFrame or Series objects"
          )
      self.pandas_object = pandas_object
  
imports: import logging
  import pandas
  import numpy
  from functools import lru_cache, wraps
  from recommenders.utils.constants import DEFAULT_USER_COL, DEFAULT_ITEM_COL, DEFAULT_RATING_COL, DEFAULT_LABEL_COL
label_desc: Use image node_id 1 to create a new PandasHash object  with example: obj = PandasHash(pandas_object)