class_docstr: Test Public Streamlit Public APIs.
class_docstr_tok: ["Test","Public","Streamlit","Public","APIs","."]
docstr: Test st.table.
docstr_tok: ["Test","st.table","."]
code: def test_table(self):
      """Test st.table."""
      from streamlit.type_util import bytes_to_data_frame
  
      df = pd.DataFrame([[1, 2], [3, 4]], columns=["col1", "col2"])
  
      st.table(df)
  
      proto = self.get_delta_from_queue().new_element.arrow_table
      pd.testing.assert_frame_equal(bytes_to_data_frame(proto.data), df)
  
imports: import json
  from unittest.mock import MagicMock, patch
  import numpy
  import pandas
  import pyarrow
  import pytest
  from pandas.io.formats.style_render import StylerRenderer
  import streamlit
  from streamlit.elements.lib.column_config_utils import INDEX_IDENTIFIER
  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
  from tests.testutil import create_snowpark_session
label_desc: Use image node_id 1 for calling the StArrowTableAPITest obj's underlying member method code with example usage: obj.test_table() without return types