class_docstr: Test ability to marshall arrow_vega_lite_chart protos.
class_docstr_tok: ["Test","ability","to","marshall","arrow_vega_lite_chart","protos","."]
docstr: Test that you can call add_rows on arrow_vega_lite_chart (with data).
docstr_tok: ["Test","that","you","can","call","add_rows","on","arrow_vega_lite_chart","(","with","data",")","."]
code: def test_add_rows(self):
      """Test that you can call add_rows on arrow_vega_lite_chart (with data)."""
      chart = st.vega_lite_chart(df1, {"mark": "rect"})
  
      proto = (
          self.get_delta_from_queue().new_element.arrow_vega_lite_chart
      )
      self.assertEqual(proto.HasField("data"), True)
  
      chart.add_rows(df2)
  
      proto = self.get_delta_from_queue().arrow_add_rows
      pd.testing.assert_frame_equal(
          bytes_to_data_frame(proto.data.data), df2, check_dtype=False
      )
  
imports: import json
  import pandas
  import pyarrow
  from parameterized import parameterized
  import streamlit
  from streamlit.errors import StreamlitAPIException
  from streamlit.type_util import bytes_to_data_frame, pyarrow_table_to_bytes
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 11 for calling the ArrowVegaLiteTest obj's underlying member method code with example usage: obj.test_add_rows() without return types