Click or drag to resize
FrameExtensionsExpandColumnsR Method (FrameR, String, IEnumerableString)
Creates a new data frame where the specified columns are expanded based on runtime structure of the objects they store. A column can be expanded if it is `Series<string, T>` or `IDictionary<K, V>` or if it is any .NET object with readable properties. ## Example Given a data frame with a series that contains tuples, you can expand the tuple members and get a frame with columns `S.Item1` and `S.Item2`: let df = frame [ "S" => series [ 1 => (1, "One"); 2 => (2, "Two") ] ] df.ExpandColumns ["S"] ## Parameters - `names` - Names of columns in the original data frame to be expanded - `frame` - Input data frame whose columns will be expanded [category:Data structure manipulation]

Namespace:  Deedle
Assembly:  Deedle (in Deedle.dll) Version: 1.2
Syntax
C#
public static Frame<R, string> ExpandColumns<R>(
	this Frame<R, string> frame,
	IEnumerable<string> names
)

Parameters

frame
Type: DeedleFrameR, String

[Missing <param name="frame"/> documentation for "M:Deedle.FrameExtensions.ExpandColumns``1(Deedle.Frame{``0,System.String},System.Collections.Generic.IEnumerable{System.String})"]

names
Type: System.Collections.GenericIEnumerableString

[Missing <param name="names"/> documentation for "M:Deedle.FrameExtensions.ExpandColumns``1(Deedle.Frame{``0,System.String},System.Collections.Generic.IEnumerable{System.String})"]

Type Parameters

R

Return Value

Type: FrameR, String

[Missing <returns> documentation for "M:Deedle.FrameExtensions.ExpandColumns``1(Deedle.Frame{``0,System.String},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, String. 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