Package com.leumanuel.woozydata.util
Class DataCsvReader
java.lang.Object
com.leumanuel.woozydata.util.DataCsvReader
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
DataCsvReader
public DataCsvReader()
-
-
Method Details
-
readCSV
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
-