DataFrame.FromDataTable Method

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

FromDataTable(DataTable) Constructs a data frame from a data table.
FromDataTable(DataTable, IEnumerable<String>) Constructs a data frame from the specified columns in a data table.
FromDataTable<R>(DataTable, String) Constructs a data frame from a data table using the specified key column.
FromDataTable<R>(DataTable, String, IEnumerable<String>) Constructs a data frame from the specified columns in a data table using the specified key column.

DataFrame.FromDataTable(DataTable)

Constructs a data frame from a data table.
C#
public static DataFrame<long, string> FromDataTable(
	DataTable table
)

Parameters

table  DataTable
The DataTable that contains the data.

Return Value

DataFrame<Int64, String>
A new data frame containing the data in table.

DataFrame.FromDataTable(DataTable, IEnumerable<String>)

Constructs a data frame from the specified columns in a data table.
C#
public static DataFrame<long, string> FromDataTable(
	DataTable table,
	IEnumerable<string> columns
)

Parameters

table  DataTable
The DataTable that contains the data.
columns  IEnumerable<String>
A sequence of column names.

Return Value

DataFrame<Int64, String>
A new data frame containing the data in the specified columns in table.

DataFrame.FromDataTable<R>(DataTable, String)

Constructs a data frame from a data table using the specified key column.
C#
public static DataFrame<R, string> FromDataTable<R>(
	DataTable table,
	string keyColumn
)

Parameters

table  DataTable
The DataTable that contains the data.
keyColumn  String
The name of the column that contains the row index values.

Type Parameters

R
The element type of the row index.

Return Value

DataFrame<R, String>
A new data frame containing the data in table.

DataFrame.FromDataTable<R>(DataTable, String, IEnumerable<String>)

Constructs a data frame from the specified columns in a data table using the specified key column.
C#
public static DataFrame<R, string> FromDataTable<R>(
	DataTable table,
	string keyColumn,
	IEnumerable<string> columns
)

Parameters

table  DataTable
The DataTable that contains the data.
keyColumn  String
The name of the column that contains the row index values.
columns  IEnumerable<String>
A sequence of column names.

Type Parameters

R
The element type of the row index.

Return Value

DataFrame<R, String>
A new data frame containing the data in the specified columns in table.

See Also