All Downloads are FREE. Search and download functionalities are using the official Maven repository.

utils.TableDataSetLoader Maven / Gradle / Ivy

The newest version!
package utils;

import tech.tablesaw.api.Table;
import tech.tablesaw.io.csv.CsvReadOptions;

import java.io.File;
import java.io.IOException;

public class TableDataSetLoader {

    public static Table loadDataSet(File csvFile) throws IOException {

        CsvReadOptions options = CsvReadOptions.builder(csvFile).missingValueIndicator("null").build();
        Table dataSet = Table.read().usingOptions(options);
        return dataSet;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy