Neil Wadhvana
11/27/2024, 9:42 PMdf.sample() api to get a fractional sample of the dataframe. Is there an API that I can pass an integer to (ie. number of rows)? I just want to materialize n-random-rows as a daft dataframe, not show them in a notebook.Colin Ho
11/27/2024, 10:05 PMdf.count_rows() and then sample with df.sample(fraction=desired_num_rows/num_total_rows .
Also, I believe @Desmond Cheong is working on implementing sampling by max_rows ,https://github.com/Eventual-Inc/Daft/issues/3332 .Neil Wadhvana
11/27/2024, 10:05 PM