This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://claude.ai/chat/723087ee-5aac-4028-b4ad-c37f07df145c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import daft | |
| import memray | |
| def daft_in_memory_operation_one_partition(nums: int): | |
| daft.context.set_runner_native() | |
| for _ in range(0, nums): | |
| df = daft.read_parquet("/nyc_taxi_2022/*") | |
| df_filter = daft.sql("select VendorID, sum(total_amount) as total_amount from df group by VendorID") | |
| df_filter.show(100) |