Docs
.labels

Dataframe.labels

This function returns an array of strings ie. the labels of each column of the dataframe

Returns

  • Array<string>
const labels: Array<string> = df.labels; // ["age", "workclass", ...]