TextOptions.InferenceRows Property

Gets the number of rows used to infer the type of columns.

Definition

Namespace: Numerics.NET.Data
Assembly: Numerics.NET.Data (in Numerics.NET.Data.dll) Version: 10.10.0
C#
public int InferenceRows { get; }

Property Value

Int32

Remarks

Data-frame readers examine up to this many data records, excluding column headers. A value less than or equal to zero examines the entire remaining input. The default is 100.

A numeric or date type is selected only when every nonblank sampled field can be parsed using FormatProvider. Otherwise, the column is text and retains its field contents, including leading zeros and spaces. Empty text fields are missing; numeric and date columns also treat whitespace-only fields as missing.

After inference, a nonblank field incompatible with the selected type causes a FormatException identifying the value, expected type, one-based data-record number, and one-based column number (with its name when present). Headers and records skipped by StartRow are excluded from the data-record number. Numeric-only columns retain numeric inference even when their fields are quoted or have leading zeros.

See Also