Share via


IDataViewExtensions.ToDataFrame Method

Definition

Overloads

ToDataFrame(IDataView, Int64)

Returns a DataFrame from this dataView.

ToDataFrame(IDataView, String[])

Returns a DataFrame with the first 100 rows of this dataView.

ToDataFrame(IDataView, Int64, String[])

Returns a DataFrame with the first maxRows of this dataView.

ToDataFrame(IDataView, Int64)

Returns a DataFrame from this dataView.

public static Microsoft.Data.Analysis.DataFrame ToDataFrame (this Microsoft.ML.IDataView dataView, long maxRows = 100);
static member ToDataFrame : Microsoft.ML.IDataView * int64 -> Microsoft.Data.Analysis.DataFrame
<Extension()>
Public Function ToDataFrame (dataView As IDataView, Optional maxRows As Long = 100) As DataFrame

Parameters

dataView
IDataView

The current IDataView.

maxRows
Int64

The max number or rows in the DataFrame. Defaults to 100. Use -1 to construct a DataFrame using all the rows in dataView.

Returns

A DataFrame with maxRows.

Applies to

ToDataFrame(IDataView, String[])

Returns a DataFrame with the first 100 rows of this dataView.

public static Microsoft.Data.Analysis.DataFrame ToDataFrame (this Microsoft.ML.IDataView dataView, params string[] selectColumns);
static member ToDataFrame : Microsoft.ML.IDataView * string[] -> Microsoft.Data.Analysis.DataFrame
<Extension()>
Public Function ToDataFrame (dataView As IDataView, ParamArray selectColumns As String()) As DataFrame

Parameters

dataView
IDataView

The current IDataView.

selectColumns
String[]

The columns selected for the resultant DataFrame

Returns

A DataFrame with the selected columns and 100 rows.

Applies to

ToDataFrame(IDataView, Int64, String[])

Returns a DataFrame with the first maxRows of this dataView.

public static Microsoft.Data.Analysis.DataFrame ToDataFrame (this Microsoft.ML.IDataView dataView, long maxRows, params string[] selectColumns);
static member ToDataFrame : Microsoft.ML.IDataView * int64 * string[] -> Microsoft.Data.Analysis.DataFrame
<Extension()>
Public Function ToDataFrame (dataView As IDataView, maxRows As Long, ParamArray selectColumns As String()) As DataFrame

Parameters

dataView
IDataView

The current IDataView.

maxRows
Int64

The max number or rows in the DataFrame. Use -1 to construct a DataFrame using all the rows in dataView.

selectColumns
String[]

The columns selected for the resultant DataFrame

Returns

A DataFrame with the selected columns and maxRows rows.

Applies to