docstr: Test that a DataFrame can be constructed from a pyarrow.Table
docstr_tok: ["Test","that","a","DataFrame","can","be","constructed","from","a","pyarrow.Table"]
code: def test_pyarrow_table(self):
      """Test that a DataFrame can be constructed from a pyarrow.Table"""
      d = {"a": [1], "b": [2], "c": [3]}
      table = pa.Table.from_pandas(pd.DataFrame(d))
      df = type_util.convert_anything_to_df(table)
      self.assertEqual(type(df), pd.DataFrame)
      self.assertEqual(df.shape, (1, 3))
  
file_path: streamlit/lib/tests/streamlit/dataframe_coercion_test.py
imports: import unittest
  import numpy
  import pandas
  import pyarrow
  from streamlit import type_util
label_desc: Use image node_id 4 for calling the DataFrameCoercionTest obj's underlying member method code with example usage: obj.test_pyarrow_table() without return types