(table, path, **kwargs)
| 27 | |
| 28 | |
| 29 | def _write_table(table, path, **kwargs): |
| 30 | # So we see the ImportError somewhere |
| 31 | import pyarrow.parquet as pq |
| 32 | from pyarrow.pandas_compat import _pandas_api |
| 33 | |
| 34 | if _pandas_api.is_data_frame(table): |
| 35 | table = pa.Table.from_pandas(table) |
| 36 | |
| 37 | pq.write_table(table, path, **kwargs) |
| 38 | return table |
| 39 | |
| 40 | |
| 41 | def _read_table(*args, **kwargs): |