Skip to content

Commit

Permalink
Added info about backend kwargs in pyarrow
Browse files Browse the repository at this point in the history
  • Loading branch information
dat-a-man committed Oct 1, 2024
1 parent 854905f commit 3c51e2f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,15 @@ def _double_as_decimal_adapter(table: sa.Table) -> None:
sql_alchemy_source = sql_database(
"mysql+pymysql://rfamro@mysql-rfam-public.ebi.ac.uk:4497/Rfam?&binary_prefix=true",
backend="pyarrow",
backend_kwargs={"tz": "UTC"},
table_adapter_callback=_double_as_decimal_adapter
).with_resources("family", "genome")

info = pipeline.run(sql_alchemy_source)
print(info)
```
For more information on the `tz` parameter within `backend_kwargs` supported by PyArrow, please refer to the
[official documentation.](https://arrow.apache.org/docs/python/generated/pyarrow.timestamp.html)

### pandas

Expand Down

0 comments on commit 3c51e2f

Please sign in to comment.