Skip to content

Commit

Permalink
Update 2023-08-11-dataframes.md
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-geller committed Aug 10, 2023
1 parent 773dcab commit 73e4792
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions content/blogs/2023-08-11-dataframes.md
Original file line number Diff line number Diff line change
Expand Up @@ -394,21 +394,21 @@ import fugue.api as fa

def run(engine=None):
query = """
orders = LOAD "dataframes/2023*.csv" (header=True)
products = LOAD "dataframes/products.csv" (header=True)
orders = LOAD "dataframes/2023*.csv" (header=true)
products = LOAD "dataframes/products.csv" (header=true)
df = SELECT *
df = SELECT product_name, CAST(total AS INT) AS total
FROM orders
LEFT JOIN products
ON orders.product_id = products.products_id
ON orders.product_id = products.product_id
res = SELECT product_name, SUM(total) as total
res = SELECT product_name, SUM(total) AS total
FROM df
GROUP BY product_name
ORDER BY total
LIMIT 10
SAVE "bestsellers_fugue.json"
SAVE TO "bestsellers_fugue.json"
"""

fa.fugue_sql(query, engine=engine)
Expand Down

1 comment on commit 73e4792

@vercel
Copy link

@vercel vercel bot commented on 73e4792 Aug 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kestra-io – ./

kestra-io-git-main-kestra.vercel.app
kestra-io-kestra.vercel.app
kestra-io.vercel.app

Please sign in to comment.