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

Dataset to_csv method fails for non tabular data. #104

Open
jcorreia11 opened this issue Jul 12, 2023 · 0 comments
Open

Dataset to_csv method fails for non tabular data. #104

jcorreia11 opened this issue Jul 12, 2023 · 0 comments
Labels
bug Something isn't working enhancement New feature or request priority-tier2

Comments

@jcorreia11
Copy link
Collaborator

When computing non-tabular features, like one-hot-encoding, the to_csv method in the Dataset class fails. I think this is the correct behavior as pandas can only save tabular data to CSV files.

However, I think we should support saving/loading other types of data.
In the case of one-hot-encodings a simple save/load with numpy should do the trick:

np.save('path...', dataset.X)

...

dataset.X = np.load('path...')

For other types of data other alternatives should be explored and implemented.

@jcorreia11 jcorreia11 added bug Something isn't working enhancement New feature or request priority-tier2 labels Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request priority-tier2
Projects
None yet
Development

No branches or pull requests

1 participant