Docs
.select

Dataframe.select(...)

This function return a new Dataframe with only the desired columns, ie. columns with the specified labels

Parameters

  • key: Array<string> - this is an array of column key or label, if unsure of the labels, it can be retrived by running Dataframe.labels

Returns

  • Dataframe<T>
const selected: Dataframe<T> = df.select(["job_title", "salary", "salary_currency", "salary_in_usd"]);
Providing an empty array will by default returns the entire columns of the dataframe
const selected: Dataframe<T> = df.select([]);