Function extract_column

Function Documentation

vector<double> extract_column(const string &filename, const string &column_name)

Extract a single column for a csv file and return it as a vector<doule>.

Parameters:
  • filename – the path of the csv file.

  • column_name – the name of the column to extract.

Returns:

vector<double>