significant improvement to the readme and verification that all the examples work

This commit is contained in:
Ari Brown 2024-01-31 16:18:32 -05:00
parent e3c11fb1aa
commit 5dccce53e9
9 changed files with 275 additions and 109 deletions

View file

@ -13,15 +13,17 @@ athena = m.athena("s3://haystac-pmo-athena/")
# Everything *needs* to have a column in order for unloading to parquet to work,
# so scalar values have to be assigned something, so here we use `as count` to
# create a temporary column called `count`
query = athena.query(
"""
select round(longitude, 3) as lon, count(*) as count
from trajectories.baseline
where agent = 4
group by round(longitude, 3)
order by count(*) desc
"""
)
#query = athena.query(
# """
# select round(longitude, 3) as lon, count(*) as count
# from trajectories.basline
# where agent = 4
# group by round(longitude, 3)
# order by count(*) desc
# """
#)
query = athena.query("select * from trajectories.basline where agent < 100 limit 100")
data = query.results()
pp.pprint(data.head(10))