| F# Frame extensionsToDataTableTRowKey, TColumnKey Method |
Returns the data of the frame as a .NET `DataTable` object. The column keys are
automatically converted to strings that are used as column names. The row index is
turned into an additional column with the specified name (the function takes the name
as a sequence to support hierarchical keys, but typically you can write just
`frame.ToDataTable(["KeyName"])`.
## Parameters
- `rowKeyNames` - Specifies the names of the row key components (or just a single
row key name if the row index is not hierarchical).
[category:Input and output]
Namespace:
Deedle
Assembly:
Deedle (in Deedle.dll) Version: 1.2
Syntax public static DataTable ToDataTable<TRowKey, TColumnKey>(
Frame<TRowKey, TColumnKey> frame,
IEnumerable<string> rowKeyNames
)
Parameters
- frame
- Type: DeedleFrameTRowKey, TColumnKey
[Missing <param name="frame"/> documentation for "M:Deedle.F# Frame extensions.Frame`2.ToDataTable``2(Deedle.Frame{``0,``1},System.Collections.Generic.IEnumerable{System.String})"]
- rowKeyNames
- Type: System.Collections.GenericIEnumerableString
[Missing <param name="rowKeyNames"/> documentation for "M:Deedle.F# Frame extensions.Frame`2.ToDataTable``2(Deedle.Frame{``0,``1},System.Collections.Generic.IEnumerable{System.String})"]
Type Parameters
- TRowKey
- TColumnKey
Return Value
Type:
DataTable[Missing <returns> documentation for "M:Deedle.F# Frame extensions.Frame`2.ToDataTable``2(Deedle.Frame{``0,``1},System.Collections.Generic.IEnumerable{System.String})"]
See Also