Share via


DataFrame.Select Method

Definition

Overloads

Select(Column[])

Selects a set of column based expressions.

Select(String, String[])

Selects a set of columns. This is a variant of Select() that can only select existing columns using column names (i.e. cannot construct expressions).

Select(Column[])

Selects a set of column based expressions.

public Microsoft.Spark.Sql.DataFrame Select (params Microsoft.Spark.Sql.Column[] columns);
member this.Select : Microsoft.Spark.Sql.Column[] -> Microsoft.Spark.Sql.DataFrame
Public Function Select (ParamArray columns As Column()) As DataFrame

Parameters

columns
Column[]

Column expressions

Returns

DataFrame object

Applies to

Select(String, String[])

Selects a set of columns. This is a variant of Select() that can only select existing columns using column names (i.e. cannot construct expressions).

public Microsoft.Spark.Sql.DataFrame Select (string column, params string[] columns);
member this.Select : string * string[] -> Microsoft.Spark.Sql.DataFrame
Public Function Select (column As String, ParamArray columns As String()) As DataFrame

Parameters

column
String

Column name

columns
String[]

Additional column names

Returns

DataFrame object

Applies to