Constructs a data frame from the specified columns in a data table using the specified key column.
Namespace:
Extreme.Data
Assembly:
Extreme.Data (in Extreme.Data.dll) Version: 3.1.0
public static DataFrame<R, string> ToDataFrame<R>(
this DataTable table,
string keyColumn,
IEnumerable<string> columnKeys
)
<ExtensionAttribute>
Public Shared Function ToDataFrame(Of R) (
table As DataTable,
keyColumn As String,
columnKeys As IEnumerable(Of String)
) As DataFrame(Of R, String)
public:
[ExtensionAttribute]
generic<typename R>
static DataFrame<R, String^>^ ToDataFrame(
DataTable^ table,
String^ keyColumn,
IEnumerable<String^>^ columnKeys
)
[<ExtensionAttribute>]
static member ToDataFrame :
table : DataTable *
keyColumn : string *
columnKeys : 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. - columnKeys
- 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.
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).
Reference