DataExtensions.ToDataFrame Method

Definition

Namespace: Extreme.Data
Assembly: Extreme.Data (in Extreme.Data.dll) Version: 3.2.0

Overload List

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

DataExtensions.ToDataFrame(DataTable)

Constructs a data frame from a data table.
C#
public static DataFrame<long, string> ToDataFrame(
	this 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.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DataTable. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

DataExtensions.ToDataFrame(DataTable, IEnumerable<String>)

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

Parameters

table  DataTable
The DataTable that contains the data.
columnKeys  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.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DataTable. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

DataExtensions.ToDataFrame<R>(DataTable, String)

Constructs a data frame from a data table using the specified key column.
C#
public static DataFrame<R, string> ToDataFrame<R>(
	this 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.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DataTable. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

DataExtensions.ToDataFrame<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> ToDataFrame<R>(
	this DataTable table,
	string keyColumn,
	IEnumerable<string> columnKeys
)

Parameters

table  DataTable
The DataTable that contains the data.
keyColumn  String
The name of the column that contains the row index values.
columnKeys  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.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DataTable. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also