Microsoft Fabric, Data Engineering, Data Science, Python.
.group_by('city') \ .agg(pl.col('transaction_id').count().alias("qt")) \ .sort("qt") daily_transaction_count = daily_transaction_count.collect() display(daily_transaction_count) print("--- %s Polars seconds ---" % (time.time() - start_time)) Execution time for Polars: DuckDB DuckDB is a