|
|
|
|
|
by d0mine
846 days ago
|
|
Why not SQL for pure declarative queries? Here's llm-hallucinated sql query of the polars example: SELECT country, SUM(amount - discount) AS total
FROM purchases
WHERE amount <= (
SELECT MEDIAN(amount) * 10
FROM purchases
WHERE country = purchases.country
)
GROUP BY country;
It might be just an issue of familiarity but sql seems the most straightforward and easy to understand for me. |
|