class_docstr: Produce a simple ASCII, CSV, HTML, or LaTeX table from a
  *rectangular* (2d!) array of data, not necessarily numerical.
  Directly supports at most one header row,
  which should be the length of data[0].
  Directly supports at most one stubs column,
  which must be the length of data.
  (But see `insert_stubs` method.)
  See globals `default_txt_fmt`, `default_csv_fmt`, `default_html_fmt`,
  and `default_latex_fmt` for formatting options.
  
  Sample uses::
  
      mydata = [[11,12],[21,22]]  # data MUST be 2-dimensional
      myheaders = [ "Column 1", "Column 2" ]
      mystubs = [ "Row 1", "Row 2" ]
      tbl = text.SimpleTable(mydata, myheaders, mystubs, title="Title")
      print( tbl )
      print( tbl.as_html() )
      # set column specific data formatting
      tbl = text.SimpleTable(mydata, myheaders, mystubs,
          data_fmts=["%3.2f","%d"])
      print( tbl.as_csv() )
      with open('c:/temp/temp.tex','w') as fh:
          fh.write( tbl.as_latex_tabular() )
class_docstr_tok: ["Produce","a","simple","ASCII",",","CSV",",","HTML",",","or","LaTeX","table","from","a","*","rectangular","*","(","2d","!",")","array","of","data",",","not","necessarily","numerical",".","Directly","supports","at","most","one","header","row",",","which","should","be","the","length","of","data","[","0","]",".","Directly","supports","at","most","one","stubs","column",",","which","must","be","the","length","of","data",".","(","But","see","`","insert_stubs","`","method",".",")","See","globals","`","default_txt_fmt","`",",","`","default_csv_fmt","`",",","`","default_html_fmt","`",",","and","`","default_latex_fmt","`","for","formatting","options",".","Sample","uses",":",":","mydata","=","[","[","11,12","]",",","[","21,22","]","]","#","data","MUST","be","2-dimensional","myheaders","=","[","``","Column","1","''",",","``","Column","2","''","]","mystubs","=","[","``","Row","1","''",",","``","Row","2","''","]","tbl","=","text.SimpleTable","(","mydata",",","myheaders",",","mystubs",",","title=","''","Title","''",")","print","(","tbl",")","print","(","tbl.as_html","(",")",")","#","set","column","specific","data","formatting","tbl","=","text.SimpleTable","(","mydata",",","myheaders",",","mystubs",",","data_fmts=","[","``","%","3.2f","''",",","''","%","d","''","]",")","print","(","tbl.as_csv","(",")",")","with","open","(","'","c",":","\/temp\/temp.tex","'",",","'","w","'",")","as","fh",":","fh.write","(","tbl.as_latex_tabular","(",")",")"]
docstr: Return None.
  Extend each row of `self` with corresponding row of `table`.
  Does **not** import formatting from ``table``.
  This generally makes sense only if the two tables have
  the same number of rows, but that is not enforced.
  :note: To extend append a table below, just use `extend`,
  which is the ordinary list method.  This generally makes sense
  only if the two tables have the same number of columns,
  but that is not enforced.
docstr_tok: ["Return","None",".","Extend","each","row","of","`","self","`","with","corresponding","row","of","`","table","`",".","Does","*","*","not","*","*","import","formatting","from","``","table","``",".","This","generally","makes","sense","only","if","the","two","tables","have","the","same","number","of","rows",",","but","that","is","not","enforced",".",":","note",":","To","extend","append","a","table","below",",","just","use","`","extend","`",",","which","is","the","ordinary","list","method",".","This","generally","makes","sense","only","if","the","two","tables","have","the","same","number","of","columns",",","but","that","is","not","enforced","."]
code: def extend_right(self, table):
      """Return None.
      Extend each row of `self` with corresponding row of `table`.
      Does **not** import formatting from ``table``.
      This generally makes sense only if the two tables have
      the same number of rows, but that is not enforced.
      :note: To extend append a table below, just use `extend`,
      which is the ordinary list method.  This generally makes sense
      only if the two tables have the same number of columns,
      but that is not enforced.
      """
      for row1, row2 in zip(self, table):
          row1.extend(row2)
  
imports: from statsmodels.compat.python import lmap, lrange
  from itertools import cycle, zip_longest
  import csv
label_desc: Use image node_id 19 for calling the SimpleTable obj's underlying member method code with example usage: obj.extend_right(table) without return types