Click or drag to resize
FrameExtensionsToDataTableR, C 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
C#
public static DataTable ToDataTable<R, C>(
	this Frame<R, C> frame,
	IEnumerable<string> rowKeyNames
)

Parameters

frame
Type: DeedleFrameR, C

[Missing <param name="frame"/> documentation for "M:Deedle.FrameExtensions.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.FrameExtensions.ToDataTable``2(Deedle.Frame{``0,``1},System.Collections.Generic.IEnumerable{System.String})"]

Type Parameters

R
C

Return Value

Type: DataTable

[Missing <returns> documentation for "M:Deedle.FrameExtensions.ToDataTable``2(Deedle.Frame{``0,``1},System.Collections.Generic.IEnumerable{System.String})"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type FrameR, C. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also