Small demo to show Apache Arrow can be used as a "universal" dataset. In this simple example we "read" a data frame only once in 'read_whatever_format_return_arrow' and then we return the data data set as as pa.Table (pyarrow table)
You can run the main script using the following shell command:
uv run main.py[(1, 'ham'), (2, 'spam'), (3, 'jam')]
shape: (3, 2)
┌─────┬──────┐
│ foo ┆ bar │
│ --- ┆ --- │
│ i64 ┆ str │
╞═════╪══════╡
│ 1 ┆ ham │
│ 2 ┆ spam │
│ 3 ┆ jam │
└─────┴──────┘