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* df
← Pointer to the existing DataFrame to add the column on.double* data
← Pointer to the source array containing the new data to be added.char* name
← Name of the new column/feature.
Returns
int
→ 0 on success, non-zero on failure.