Constructs a data frame from the specified columns in a data table using the specified key column.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
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.
Reference