def set_last_row_idx(self, last_row_idx):
		'''
		Parameters
		----------
		param last_row_idx : int
			number of rows
		'''
		assert last_row_idx >= self._max_row
		self._max_row = last_row_idx
		return self

		Parameters
		----------
		param last_row_idx : int
			number of rows
		
scattertext/CSRMatrixTools.py