class_docstr: Used to render a DataFrame to a LaTeX tabular/longtable environment
  output.
  
  Parameters
  ----------
  formatter : `DataFrameFormatter`
  column_format : str, default None
      The columns format as specified in `LaTeX table format
      <https://en.wikibooks.org/wiki/LaTeX/Tables>`__ e.g 'rcl' for 3 columns
  longtable : boolean, default False
      Use a longtable environment instead of tabular.
  
  See Also
  --------
  HTMLFormatter
class_docstr_tok: ["Used","to","render","a","DataFrame","to","a","LaTeX","tabular\/longtable","environment","output",".","Parameters","--","--","--","--","--","formatter",":","`","DataFrameFormatter","`","column_format",":","str",",","default","None","The","columns","format","as","specified","in","`","LaTeX","table","format","<","https",":","\/\/en.wikibooks.org\/wiki\/LaTeX\/Tables",">","`","__","e.g","'rcl","'","for","3","columns","longtable",":","boolean",",","default","False","Use","a","longtable","environment","instead","of","tabular",".","See","Also","--","--","--","--","HTMLFormatter"]
docstr: Check following rows, whether row should be a multirow
  
  e.g.:     becomes:
  a & 0 &   \multirow{2}{*}{a} & 0 &
    & 1 &     & 1 &
  b & 0 &   \cline{1-2}
            b & 0 &
docstr_tok: ["Check","following","rows",",","whether","row","should","be","a","multirow","e.g",".",":","becomes",":","a","&","0","&","\\multirow","{","2","}","{","*","}","{","a","}","&","0","&","&","1","&","&","1","&","b","&","0","&","\\cline","{","1-2","}","b","&","0","&"]
code: def _format_multirow(self, row, ilevels, i, rows):
      r"""
      Check following rows, whether row should be a multirow
  
      e.g.:     becomes:
      a & 0 &   \multirow{2}{*}{a} & 0 &
        & 1 &     & 1 &
      b & 0 &   \cline{1-2}
                b & 0 &
      """
      for j in range(ilevels):
          if row[j].strip():
              nrow = 1
              for r in rows[i + 1 :]:
                  if not r[j].strip():
                      nrow += 1
                  else:
                      break
              if nrow > 1:
                  # overwrite non-multirow entry
                  row[
                      j
                  ] = "\\multirow{{{nrow:d}}}{{*}}{{{row:s}}}".format(
                      nrow=nrow, row=row[j].strip()
                  )
                  # save when to end the current block with \cline
                  self.clinebuf.append([i + nrow - 1, j + 1])
      return row
  
file_path: catboost/contrib/python/pandas/py2/pandas/io/formats/latex.py
imports: from __future__ import print_function
  import numpy
  from pandas.compat import map, range, u, zip
  from pandas.core.dtypes.generic import ABCMultiIndex
  from pandas import compat
  from pandas.io.formats.format import TableFormatter
label_desc: Use image node_id 4 for calling the LatexFormatter obj's underlying member method code with example usage: obj._format_multirow(row, ilevels, i, rows) and returns: row