Process swft files
Project description
Process swft files generated by the swift tracking software.
Provided Functions
load(path: str)
Load a swft file specified by path
.
Returns a dictonary of type {table_name: table}
. Each table is represented by a pandas DataFrame
with four additional attributes:
child: str
: Name of the child table (if any)id_col: str
: Name of column in child table that contains the row ID of the parentpos_col: str
: Name of column in child table that contains the position in parent (optional)units: dict
: Dictionary of type{column_name: unit}
. Does not have to contain an entry for every column.
dump(dataset: dict, path: str)
Save dataset
, a dictionary as specified above, to a file specified by path
.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
swft-0.3.tar.gz
(3.0 kB
view hashes)
Built Distribution
swft-0.3-py3-none-any.whl
(4.4 kB
view hashes)