Skip to content

MiguelElGallo/Arrow_as_source

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arrow_as_source

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)

Run the project

You can run the main script using the following shell command:

uv run main.py

Output of this example

[(1, 'ham'), (2, 'spam'), (3, 'jam')]
shape: (3, 2)
┌─────┬──────┐
│ foo ┆ bar  │
│ --- ┆ ---  │
│ i64 ┆ str  │
╞═════╪══════╡
│ 1   ┆ ham  │
│ 2   ┆ spam │
│ 3   ┆ jam  │
└─────┴──────┘

About

Small demo to show Apache Arrow can be used as a "universal" dataset

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages