class_docstr: Factory class to create a csr_matrix.
          
docstr: Insert a value into the matrix
  
  Parameters
  ----------
  row_col : tuple
          Row and column indices
  datum : float or int
          Numeric value to insert into the matrix
  
  
  >>> mat_fact = CSRMatrixFactory()
  >>> mat_fact[3,1] = 1
  
  Returns
  -------
  Noone
docstr_tok: ["Insert","a","value","into","the","matrix","Parameters","--","--","--","--","--","row_col",":","tuple","Row","and","column","indices","datum",":","float","or","int","Numeric","value","to","insert","into","the","matrix",">",">",">","mat_fact","=","CSRMatrixFactory","(",")",">",">",">","mat_fact","[","3,1","]","=","1","Returns","--","--","--","-","Noone"]
code: def __setitem__(self, row_col, datum):
      """Insert a value into the matrix
  
      Parameters
      ----------
      row_col : tuple
              Row and column indices
      datum : float or int
              Numeric value to insert into the matrix
  
  
      >>> mat_fact = CSRMatrixFactory()
      >>> mat_fact[3,1] = 1
  
      Returns
      -------
      Noone
      """
      row, col = row_col
      self.rows.append(row)
      self.cols.append(col)
      self.data.append(datum)
      if row > self._max_row:
          self._max_row = row
      if col > self._max_col:
          self._max_col = col
      if isinstance(datum, float):
          self._dtype = type(datum)
  
file_path: scattertext/scattertext/CSRMatrixTools.py
imports: import numpy
  from scipy.sparse import csr_matrix
label_desc: Use image node_id 2 for calling the CSRMatrixFactory obj's underlying member method code with example usage: obj.__setitem__(row_col, datum) without return types