fromCsv function

Future<DataFrame> fromCsv (
  1. String fileName,
  2. {String columnDelimiter: defaultFieldDelimiter,
  3. String eol: '\n',
  4. bool headerExists: true,
  5. Iterable<String> header: const [],
  6. String autoHeaderPrefix: defaultHeaderPrefix,
  7. Iterable<int> columns: const [],
  8. Iterable<String> columnNames: const []}
)

Implementation

Future<DataFrame> fromCsv(
    String fileName,
    {
      String columnDelimiter = defaultFieldDelimiter,
      String eol = '\n',
      bool headerExists = true,
      Iterable<String> header = const [],
      String autoHeaderPrefix = defaultHeaderPrefix,
      Iterable<int> columns = const [],
      Iterable<String> columnNames = const [],
    }
) async {
  final reader = DataReader.csv(fileName, columnDelimiter, eol);
  final data = await reader.extractData();

  return fromRawData(
    data,
    headerExists: headerExists,
    predefinedHeader: header,
    autoHeaderPrefix: autoHeaderPrefix,
    columns: columns,
    columnNames: columnNames,
  );
}