Data Frame<R, C>.Head Method
Returns the first few rows of the data frame.
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
A new data frame containing the first count rows of the data frame.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
public DataFrame<R, C> Head(
int count = 5
)
Parameters
- count Int32 (Optional)
- The number of rows to return.
Return Value
DataFrame<R, C>A new data frame containing the first count rows of the data frame.
Remarks
If count is greater than or equal to the number of rows in the data frame, the data frame is returned unmodified.
Exceptions
Argument | count is less than zero. |