original_docstring: 
      Computes a deterministic index mapping each record to a partition.
  
      Identical rows are mapped to the same partition.
  
      Parameters
      ----------
      df : DataFrame/Series/Index
      npartitions : int
          The number of partitions to group into.
  
      Returns
      -------
      partitions : ndarray
          An array of int64 values mapping each record to a partition.
      
docstring: Computes a deterministic index mapping each record to a partition.
  Identical rows are mapped to the same partition.
  
  Parameters
  
  df : DataFrame/Series/Index
  npartitions : int
  The number of partitions to group into.
  
  Returns
  
  partitions : ndarray
  An array of int64 values mapping each record to a partition.
docstring_tokens: Computes a deterministic index mapping each record to a partition . Identical rows are mapped to the same partition . Parameters df : DataFrame / Series / Index npartitions : int The number of partitions to group into . Returns partitions : ndarray An array of int64 values mapping each record to a partition .
code: def partitioning_index(df, npartitions):
      """
      Computes a deterministic index mapping each record to a partition.
  
      Identical rows are mapped to the same partition.
  
      Parameters
      ----------
      df : DataFrame/Series/Index
      npartitions : int
          The number of partitions to group into.
  
      Returns
      -------
      partitions : ndarray
          An array of int64 values mapping each record to a partition.
      """
      return hash_pandas_object(df, index=False) % int(npartitions)
code_tokens: def partitioning_index ( df , npartitions ) : return hash_pandas_object ( df , index = False ) % int ( npartitions )
short_docstring: Computes a deterministic index mapping each record to a partition.
short_docstring_tokens: Computes a deterministic index mapping each record to a partition .
comment: """
      Computes a deterministic index mapping each record to a partition.
  
      Identical rows are mapped to the same partition.
  
      Parameters
      ----------
      df : DataFrame/Series/Index
      npartitions : int
          The number of partitions to group into.
  
      Returns
      -------
      partitions : ndarray
          An array of int64 values mapping each record to a partition.
      """