daft.DataFrame.limit#
- DataFrame.limit(num: int) DataFrame [source]#
Limits the rows in the DataFrame to the first
N
rows, similar to a SQLLIMIT
Example
>>> df_limited = df.limit(10) # returns 10 rows
- Parameters:
num (int) – maximum rows to allow.
eager (bool) – whether to maximize for latency (time to first result) by eagerly executing only one partition at a time, or throughput by executing multiple limits at a time
- Returns:
Limited DataFrame
- Return type: