audata.bin package

Submodules

audata.bin.csv2audata module

Tool for automagically converting CSV files to audata files.

audata.bin.csv2audata.main()

Converts CSV files or nested directories containing multiple CSVs to an audata HDF5 file.

This tool takes in the path to either a single CSV file or a directory to be recursed for all CSV files. For each, it attempts to intelligently convert each CSV into an audata dataset and store the output to a file (with the same name as the CSV or directory, ending in ‘.h5’).

The tool will infer a datetime column if it is named time, timestamp, or index, or if it is a string column whose first element can be parsed as a datetime object using dateutils.parser.parse. This parsing does rely on the first row being valid.

Other string columns will be treated either as factor/categorical columns if the arity (unique values) is less than 10% of the total number of rows, otherwise a string column.

Parameters

path (str) – Path to a CSV file or directory to be recursively scanned for CSVs.

Module contents