Constructs a new data frame from a dictionary of columns using the specified row index.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static DataFrame<R, C> FromColumns<R, C>(
IDictionary<C, Object> columns,
Index<R> rowIndex,
Index<C> columnIndex
)
Public Shared Function FromColumns(Of R, C) (
columns As IDictionary(Of C, Object),
rowIndex As Index(Of R),
columnIndex As Index(Of C)
) As DataFrame(Of R, C)
public:
generic<typename R, typename C>
static DataFrame<R, C>^ FromColumns(
IDictionary<C, Object^>^ columns,
Index<R>^ rowIndex,
Index<C>^ columnIndex
)
static member FromColumns :
columns : IDictionary<'C, Object> *
rowIndex : Index<'R> *
columnIndex : Index<'C> -> DataFrame<'R, 'C>
Parameters
- columns
- Type: System.Collections.GenericIDictionaryC, Object
A dictionary that maps column keys to columns. - rowIndex
- Type: Extreme.DataAnalysisIndexR
The row index for the data frame. - columnIndex
- Type: Extreme.DataAnalysisIndexC
The column index for the data frame.
Type Parameters
- R
- The type of the row index.
- C
- The type of the column index.
Return Value
Type:
DataFrameR,
CA data frame whose columns are indexed by the keys
of
columnIndex and contain the collections
in the values of
columns. The rows are indexed
by
rowIndex. If a key in
columnIndex is not found in
columns,
the corresponding column will contain missing values.
Reference