Constructs a data frame from the specified columns in a data table.
Namespace:
Extreme.Data
Assembly:
Extreme.Data (in Extreme.Data.dll) Version: 3.1.0
public static DataFrame<long, string> ToDataFrame(
this DataTable table,
IEnumerable<string> columnKeys
)
<ExtensionAttribute>
Public Shared Function ToDataFrame (
table As DataTable,
columnKeys As IEnumerable(Of String)
) As DataFrame(Of Long, String)
public:
[ExtensionAttribute]
static DataFrame<long long, String^>^ ToDataFrame(
DataTable^ table,
IEnumerable<String^>^ columnKeys
)
[<ExtensionAttribute>]
static member ToDataFrame :
table : DataTable *
columnKeys : IEnumerable<string> -> DataFrame<int64, string>
Parameters
- table
- Type: System.DataDataTable
The DataTable that contains the data. - columnKeys
- Type: System.Collections.GenericIEnumerableString
A sequence of column names.
Return Value
Type:
DataFrameInt64,
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