Skip to content

Read from CSV & Write to CSV#12

Open
prashant1k99 wants to merge 3 commits intowarlock-labs:mainfrom
prashant1k99:main
Open

Read from CSV & Write to CSV#12
prashant1k99 wants to merge 3 commits intowarlock-labs:mainfrom
prashant1k99:main

Conversation

@prashant1k99
Copy link

This file introduces IO capabilities for the dimensionals crate, specifically for handling CSV files.

It includes:

  • A csv module (enabled by the io feature flag).
  • Functions from_csv and to_csv for reading and writing 2D Dimensional arrays.
  • Functions from_csv_1d and to_csv_1d for reading and writing 1D Dimensional arrays.
  • Structs CsvReadOptions and CsvWriteOptions to customize CSV parsing (e.g., delimiters, headers).
  • Error handling for scenarios like inconsistent column counts and empty files.
  • Unit tests to verify the CSV import/export functionality, including edge cases like empty arrays and files with only headers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant