-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
Description
For a given Python interface of a StatisKit software component (e.g., StatisKit-Core), to load a data frame (e.g., data), an user must be able to type:
from statiskit import core
data = core.load_data("data")For now, we consider:
- To save data according to the DSV format with:
- headers in the first row,
- the
;column separator, - the
.dsvextension.
- To save data into a
datadirectory at the root of the Python package tree (e.g.,src/py/statiskit/core/data). - That this
datadirectory cannot be imported (e.g.,from statiskit.core import datashould raise aImportError: No module named statiskit.core.dataerror)
To do so, a load_data function could defined in src/py/statiskit/core/_tools.py file.
Using a the __file__ variable of a __init__.py module file as input, this function should be able to load a data file from its basename prefix (e.g., use the input string "data" for loading the dataframe saved in the "data.dsv" file).