FrameFromRecords Method |
Name | Description | |
---|---|---|
FromRecordsT(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"}
});
| |
FromRecordsK, R(SeriesK, R) |
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.
|