Google Git
Sign in
apache / datafusion-python / b570eb4656e7357e2cdc30a07bcd483e56a7501e / . / examples
tree: 83a83cde121c3754024c9fc4458cb06d6ce53642 [path history] [tgz]
  1. chart.png
  2. dataframe-parquet.py
  3. python-udaf.py
  4. python-udf.py
  5. query-pyarrow-data.py
  6. README.md
  7. sql-on-pandas.py
  8. sql-on-polars.py
  9. sql-parquet.py
  10. sql-to-pandas.py
examples/README.md

DataFusion Python Examples

Some of the examples rely on data which can be downloaded from the following site:

  • https://www.nyc.gov/site/tlc/about/tlc-trip-record-data.page

Here is a direct link to the file used in the examples:

  • https://d37ci6vzurychx.cloudfront.net/trip-data/yellow_tripdata_2021-01.parquet

Examples

  • Query a Parquet file using SQL
  • Query a Parquet file using the DataFrame API
  • Run a SQL query and store the results in a Pandas DataFrame
  • Query PyArrow Data
  • Register a Python UDF with DataFusion
  • Register a Python UDAF with DataFusion
  • Executing SQL on Polars
  • Executing SQL on Pandas
Powered by Gitiles| Privacy| Termstxt json