code: def test_viewer_replace(self):
      table = Table({"a": [1, 2, 3]})
      viewer = PerspectiveViewer()
      viewer.load(table)
      viewer.replace({"a": [4, 5, 6]})
      assert viewer.table.size() == 3
      assert viewer.table.schema() == {"a": int}
      assert viewer.table.view().to_dict() == {"a": [4, 5, 6]}
  
imports: import numpy
  import pandas
  from perspective import PerspectiveViewer, Table
label_desc: Use image node_id 19 for calling the TestViewer obj's underlying member method code with example usage: obj.test_viewer_replace() without return types