Kiyoshika / CppEZML

A work in progress C++ machine learning library designed to be very easy to use. Everything pretty much written from scratch.
0 stars 0 forks source link

DataSet.h - append() to combine data sets #10

Closed Kiyoshika closed 3 years ago

Kiyoshika commented 3 years ago

Add append() method to combine data sets along rows or columns (not a join).

Kiyoshika commented 3 years ago

Implemented.

#include <iostream>
#include <vector>
#include "data/DataSet.h"

using namespace std;

int main() {

    DataSet data1, data2;
    data1.load("test.csv");
    data2.load("test.csv");

    DataSet appended_rows = data1.append(data2);
    DataSet appended_columns = data1.append(data2, 'c');

    return 0;
}