Skip to main content

get_column

Method of CSVDocument.

Overloads

NameDescription
get_column(const integer index) -> ListReturns a column as a list of strings.
get_column(const string column_name, const CSVValueConverterFunc converter) -> ListReturns a column as a list of values converted by a converter function.
get_column(const string column_name) -> ListReturns a column as a list of strings.
get_column(const integer index, const CSVValueConverterFunc converter) -> ListReturns a column as a list of values converted by a converter function.

get_column(const integer index) -> List

Returns a column as a list of strings.

Parameters

  • index: The index of the column to retrieve.

get_column(const string column_name, const CSVValueConverterFunc converter) -> List

Returns a column as a list of values converted by a converter function.

Parameters

  • column_name: The name of the column to retrieve.
  • converter: A function that converts each string value in the column.

get_column(const string column_name) -> List

Returns a column as a list of strings.

Parameters

  • column_name: The name of the column to retrieve.

get_column(const integer index, const CSVValueConverterFunc converter) -> List

Returns a column as a list of values converted by a converter function.

Parameters

  • index: The index of the column to retrieve.
  • converter: A function that converts each string value in the column.