| FrameFromRecordsT Method (IEnumerableT) |
Creates a data frame from a sequence of any .NET objects. The method uses reflection
over the specified type parameter `'T` and turns its properties to columns. The
rows of the resulting frame are automatically indexed by `int`.
## Example
The method can be nicely used to create a data frame using C# anonymous types
(the result is a data frame with columns "A" and "B" containing two rows).
[lang=csharp]
var df = Frame.FromRecords(new[] {
new { A = 1, B = "Test" },
new { A = 2, B = "Another"}
});
Namespace:
Deedle
Assembly:
Deedle (in Deedle.dll) Version: 1.2
Syntax public static Frame<int, string> FromRecords<T>(
IEnumerable<T> values
)
Parameters
- values
- Type: System.Collections.GenericIEnumerableT
[Missing <param name="values"/> documentation for "M:Deedle.Frame.FromRecords``1(System.Collections.Generic.IEnumerable{``0})"]
Type Parameters
- T
Return Value
Type:
FrameInt32,
String[Missing <returns> documentation for "M:Deedle.Frame.FromRecords``1(System.Collections.Generic.IEnumerable{``0})"]
See Also