Creates a new data frame containing the specified 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,
params string[] propertyNames
)
Public Shared Function FromObjects(Of T, R) (
sequence As IEnumerable(Of T),
ParamArray propertyNames As String()
) As DataFrame(Of R, String)
public:
generic<typename T, typename R>
static DataFrame<R, String^>^ FromObjects(
IEnumerable<T>^ sequence,
... array<String^>^ propertyNames
)
static member FromObjects :
sequence : IEnumerable<'T> *
propertyNames : string[] -> DataFrame<'R, string>
Parameters
- sequence
- Type: System.Collections.GenericIEnumerableT
A sequence of objects of type T. - propertyNames
- Type: SystemString
A parameter array of strings that
contains the names of the properties to include in the data frame.
The first property will serve as the row index. It must be of type
R.
Type Parameters
- T
- The type of the objects.
- R
- The type of the row index.
Return Value
Type:
DataFrameR,
StringA data frame whose columns contain the values of the properties
specified by
propertyNames of the objects in
sequence.
Reference