Constructs a data frame from the specified columns in a data table using the specified key column.
Namespace: Extreme.DataAnalysisAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.17114.0)
public static DataFrame<R, string> FromDataTable<R>(
DataTable table,
string keyColumn,
IEnumerable<string> columns
)
Public Shared Function FromDataTable(Of R) (
table As DataTable,
keyColumn As String,
columns As IEnumerable(Of String)
) As DataFrame(Of R, String)
public:
generic<typename R>
static DataFrame<R, String^>^ FromDataTable(
DataTable^ table,
String^ keyColumn,
IEnumerable<String^>^ columns
)
static member FromDataTable :
table : DataTable *
keyColumn : string *
columns : IEnumerable<string> -> DataFrame<'R, string>
Parameters
- table
- Type: System.DataDataTable
The DataTable that contains the data. - keyColumn
- Type: SystemString
The name of the column that contains the row index values. - columns
- Type: System.Collections.GenericIEnumerableString
A sequence of column names.
Type Parameters
- R
- The element type of the row index.
Return Value
Type:
DataFrameR,
StringA new data frame containing the data in the specified columns in
table.
Numerical Libraries
Supported in: 6.0
Reference