class_docstr: A :class:`~perspective.View` object represents a specific transform
  (pivot, filter, sort, etc) configuration on an underlying
  :class:`~perspective.Table`.  :class:`~perspective.View` objects
  cannot be directly instantiated - they must be derived from an existing
  :class:`~perspective.Table` via the :func:`~perspective.Table.view()`
  method.
  
  :class:`~perspective.View` instances receive all updates from the
  :class:`~perspective.Table` from which they are derived, and can be
  serialized (via ``to_*`` methods) or trigger a callback when it is updated.
  :class:`~perspective.View` objects will remain in memory and actively
  process updates until :obj:`~perspective.View.delete()` method is called.
class_docstr_tok: ["A",":","class",":","`","~perspective.View","`","object","represents","a","specific","transform","(","pivot",",","filter",",","sort",",","etc",")","configuration","on","an","underlying",":","class",":","`","~perspective.Table","`",".",":","class",":","`","~perspective.View","`","objects","can","not","be","directly","instantiated","-","they","must","be","derived","from","an","existing",":","class",":","`","~perspective.Table","`","via","the",":","func",":","`","~perspective.Table.view","(",")","`","method",".",":","class",":","`","~perspective.View","`","instances","receive","all","updates","from","the",":","class",":","`","~perspective.Table","`","from","which","they","are","derived",",","and","can","be","serialized","(","via","``","to_","*","``","methods",")","or","trigger","a","callback","when","it","is","updated",".",":","class",":","`","~perspective.View","`","objects","will","remain","in","memory","and","actively","process","updates","until",":","obj",":","`","~perspective.View.delete","(",")","`","method","is","called","."]
docstr: Serialize the :class:`~perspective.View`'s dataset into a :obj:`list`
  of :obj:`dict` containing each row.
  
  By default, the entire dataset is returned, though this can be windowed
  via ``kwargs``.  When ``group_by`` are applied, a ``__ROW_PATH__``
  column name will be generated in addition to the applied ``columns``.
  When ``split_by`` are applied, column names will be qualified
  with their column group name.
  
  Keyword Args:
      start_row (:obj:`int`): (Defaults to 0).
      end_row (:obj:`int`): (Defaults to
          :func:`perspective.View.num_rows()`).
      start_col (:obj:`int`): (Defaults to 0).
      end_col (:obj:`int`): (Defaults to
          :func:`perspective.View.num_columns()`).
      id (:obj:`bool`): Whether to return a logical row ID for each
          row (Defaults to ``False``).
      index (:obj:`bool`): Whether to return an implicit pkey for each
          row (Defaults to ``False``).
      leaves_only (:obj:`bool`): Whether to return only the data at the
          end of the tree (Defaults to ``False``).
  
  Returns:
      :obj:`list` of :obj:`dict`: A list of :obj:`dict`, where each dict
          represents a row of the current state of the
          :class:`~perspective.View`.
docstr_tok: ["Serialize","the",":","class",":","`","~perspective.View","`","'s","dataset","into","a",":","obj",":","`","list","`","of",":","obj",":","`","dict","`","containing","each","row",".","By","default",",","the","entire","dataset","is","returned",",","though","this","can","be","windowed","via","``","kwargs","``",".","When","``","group_by","``","are","applied",",","a","``","__ROW_PATH__","``","column","name","will","be","generated","in","addition","to","the","applied","``","columns","``",".","When","``","split_by","``","are","applied",",","column","names","will","be","qualified","with","their","column","group","name",".","Keyword","Args",":","start_row","(",":","obj",":","`","int","`",")",":","(","Defaults","to","0",")",".","end_row","(",":","obj",":","`","int","`",")",":","(","Defaults","to",":","func",":","`","perspective.View.num_rows","(",")","`",")",".","start_col","(",":","obj",":","`","int","`",")",":","(","Defaults","to","0",")",".","end_col","(",":","obj",":","`","int","`",")",":","(","Defaults","to",":","func",":","`","perspective.View.num_columns","(",")","`",")",".","id","(",":","obj",":","`","bool","`",")",":","Whether","to","return","a","logical","row","ID","for","each","row","(","Defaults","to","``","False","``",")",".","index","(",":","obj",":","`","bool","`",")",":","Whether","to","return","an","implicit","pkey","for","each","row","(","Defaults","to","``","False","``",")",".","leaves_only","(",":","obj",":","`","bool","`",")",":","Whether","to","return","only","the","data","at","the","end","of","the","tree","(","Defaults","to","``","False","``",")",".","Returns",":",":","obj",":","`","list","`","of",":","obj",":","`","dict","`",":","A","list","of",":","obj",":","`","dict","`",",","where","each","dict","represents","a","row","of","the","current","state","of","the",":","class",":","`","~perspective.View","`","."]
code: def to_records(self, **kwargs):
      """Serialize the :class:`~perspective.View`'s dataset into a :obj:`list`
      of :obj:`dict` containing each row.
  
      By default, the entire dataset is returned, though this can be windowed
      via ``kwargs``.  When ``group_by`` are applied, a ``__ROW_PATH__``
      column name will be generated in addition to the applied ``columns``.
      When ``split_by`` are applied, column names will be qualified
      with their column group name.
  
      Keyword Args:
          start_row (:obj:`int`): (Defaults to 0).
          end_row (:obj:`int`): (Defaults to
              :func:`perspective.View.num_rows()`).
          start_col (:obj:`int`): (Defaults to 0).
          end_col (:obj:`int`): (Defaults to
              :func:`perspective.View.num_columns()`).
          id (:obj:`bool`): Whether to return a logical row ID for each
              row (Defaults to ``False``).
          index (:obj:`bool`): Whether to return an implicit pkey for each
              row (Defaults to ``False``).
          leaves_only (:obj:`bool`): Whether to return only the data at the
              end of the tree (Defaults to ``False``).
  
      Returns:
          :obj:`list` of :obj:`dict`: A list of :obj:`dict`, where each dict
              represents a row of the current state of the
              :class:`~perspective.View`.
      """
      columns = self.to_columns(**kwargs)
      colnames = list(columns.keys())
      if len(colnames) > 0:
          if colnames[0] in columns:
              nrows = len(columns[colnames[0]])
              return [
                  {key: columns[key][i] for key in colnames}
                  for i in range(nrows)
              ]
      return []
  
imports: import pandas
  import json
  import datetime
  from functools import partial, wraps
  from random import random
  from .view_config import ViewConfig
  from ._data_formatter import to_format, _parse_format_options
  from ._constants import COLUMN_SEPARATOR_STRING
  from ._utils import _str_to_pythontype
  from ._callback_cache import _PerspectiveCallBackCache
  from ._date_validator import _PerspectiveDateValidator
  from .libpsppy import make_view_unit, make_view_zero, make_view_one, make_view_two, to_arrow_unit, to_arrow_zero, to_arrow_one, to_arrow_two, to_csv_unit, to_csv_zero, to_csv_one, to_csv_two, get_row_delta_unit, get_row_delta_zero, get_row_delta_one, get_row_delta_two, scalar_to_py
label_desc: Use image node_id 21 for calling the View obj's underlying member method code with example usage: obj.to_records() and returns: list, unknown