daft.DataFrame.limit
daft.DataFrame.limit#
- DataFrame.limit(num: int) daft.dataframe.dataframe.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.
- Returns
Limited DataFrame
- Return type