Creates a new data frame containing the public properties of a sequence of objects.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static DataFrame<R, string> FromObjects<T, R>(
IEnumerable<T> sequence,
string rowKeyProperty
)
Public Shared Function FromObjects(Of T, R) (
sequence As IEnumerable(Of T),
rowKeyProperty As String
) As DataFrame(Of R, String)
public:
generic<typename T, typename R>
static DataFrame<R, String^>^ FromObjects(
IEnumerable<T>^ sequence,
String^ rowKeyProperty
)
static member FromObjects :
sequence : IEnumerable<'T> *
rowKeyProperty : string -> DataFrame<'R, string>
Parameters
- sequence
- Type: System.Collections.GenericIEnumerableT
A sequence of objects of type T. - rowKeyProperty
- Type: SystemString
The name of the property that contains
the row keys.
Type Parameters
- T
- The type of the objects.
- R
- The type of the row index of the data frame.
Return Value
Type:
DataFrameR,
StringA data frame whose columns contain the values of the properties
of the objects in
sequence.
Reference