Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data loading specification #77

Open
pfernique opened this issue Oct 29, 2018 · 0 comments
Open

Data loading specification #77

pfernique opened this issue Oct 29, 2018 · 0 comments
Assignees

Comments

@pfernique
Copy link
Member

pfernique commented Oct 29, 2018

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 .dsv extension.
  • To save data into a data directory at the root of the Python package tree (e.g., src/py/statiskit/core/data).
  • That this data directory cannot be imported (e.g., from statiskit.core import data should raise a ImportError: No module named statiskit.core.data error)

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).

@pfernique pfernique self-assigned this Oct 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant