Class DataCsvReader

java.lang.Object
com.leumanuel.woozydata.util.DataCsvReader

public class DataCsvReader extends Object
Utility class for reading CSV files into DataFrame objects. Uses Apache Commons CSV for parsing CSV files with headers.
Version:
1.0
Author:
Leu A. Manuel
  • Constructor Details

    • DataCsvReader

      public DataCsvReader()
  • Method Details

    • readCSV

      public static DataFrame readCSV(String filePath) throws Exception
      Reads a CSV file and converts it to a DataFrame. The first row of the CSV file is expected to contain headers.
      Parameters:
      filePath - Path to the CSV file to read
      Returns:
      DataFrame containing the CSV data
      Throws:
      Exception - if there is an error reading or parsing the file