Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds export functions and tests to meet issue #5. The options and formatting are set up so if you read a table using a schema, export it to csv or json, then read the exported file with the same schema, the tables will be identical.
This doesn't implement the option to conform a table to a schema as part of exporting. Currently the export functions don't give much control over the format of the exported data - particularly for dates and times. But I think this is okay, as the way the data is written to file is less important than how the package reads those files.
These export functions mostly use default pandas export options. However, period types have to be reformatted as date strings so Arrow can read them. Exporting dates and times to json also requires explicitly converting them to strings to avoid epoch values (which Arrow reads differently from Pandas) and problems with missing values.