Skip to main content

DF_addColumn

int DF_addColumn(DataFrame *df, double *data, char *name);

Adds a single column/feature to an existing DataFrame

note

Added in version 0.0.0

Parameters

  • DataFrame* dfPointer to the existing DataFrame to add the column on.
  • double* dataPointer to the source array containing the new data to be added.
  • char* nameName of the new column/feature.

Returns

  • int0 on success, non-zero on failure.