dataFrame — head()
Description
The head() method of the dataFrame object returns the header row and the first count data rows of the dataFrame.
Signature
dataFrame.head(count)- Scope
dataFrame- Family
core- Returns
rows
Argument
count(number)- The number of data rows to return from the beginning of the DataFrame.
Returns
rows(array)- The header row and the specified number of data rows.
Example
// log the 10 first rows of a dataFrame
notebook.logTable(dataFrame.head(10));