IDataViewExtensions.ToDataFrame Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ToDataFrame(IDataView, Int64) |
Returns a DataFrame from this |
ToDataFrame(IDataView, String[]) |
Returns a DataFrame with the first 100 rows of this |
ToDataFrame(IDataView, Int64, String[]) |
Returns a DataFrame with the first |
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
- 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
- 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
- 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.