class_docstr: PerspectiveViewer wraps the `perspective.Table` API and exposes an API
  around creating views, loading data, and updating data.
class_docstr_tok: ["PerspectiveViewer","wraps","the","`","perspective.Table","`","API","and","exposes","an","API","around","creating","views",",","loading","data",",","and","updating","data","."]
docstr: Update the table under management by the viewer with new data.
  This function follows the semantics of `Table.update()`, and will be
  affected by whether an index is set on the underlying table.
  
  Args:
      data (:obj:`dict`|:obj:`list`|:obj:`pandas.DataFrame`): the
      update data for the table.
docstr_tok: ["Update","the","table","under","management","by","the","viewer","with","new","data",".","This","function","follows","the","semantics","of","`","Table.update","(",")","`",",","and","will","be","affected","by","whether","an","index","is","set","on","the","underlying","table",".","Args",":","data","(",":","obj",":","`","dict","`","|",":","obj",":","`","list","`","|",":","obj",":","`","pandas.DataFrame","`",")",":","the","update","data","for","the","table","."]
code: def update(self, data):
      """Update the table under management by the viewer with new data.
      This function follows the semantics of `Table.update()`, and will be
      affected by whether an index is set on the underlying table.
  
      Args:
          data (:obj:`dict`|:obj:`list`|:obj:`pandas.DataFrame`): the
          update data for the table.
      """
      self.table.update(data)
  
file_path: perspective/python/perspective/perspective/viewer/viewer.py
imports: from random import random
  from ..libpsp import is_libpsp
  from .validate import validate_aggregates, validate_split_by, validate_columns, validate_expressions, validate_filter, validate_plugin, validate_plugin_config, validate_group_by, validate_sort
  from .viewer_traitlets import PerspectiveTraitlets
label_desc: Use image node_id 4 for calling the PerspectiveViewer obj's underlying member method code with example usage: obj.update(data) without return types