openml-python
openml-python copied to clipboard
Automatically download again when cache is corrupt?
Description
When the dataset download is corrupted the user gets a cryptic error message. Clearing the cache fixes it but this may not be obvious to people. Could we either show a better error message, or automatically try to remove the cached file and try again?
Steps/Code to Reproduce
Hard to reproduce. It requires a bad file download. This is what information I received:
data = openml.datasets.get_dataset(did)
data.get_data()
AttributeError: ‘DataFrame’ object has no attribute ‘_data’
Expected Results
Either the dataset should load or an error message that explains what is wrong.
Actual Results
A cryptic error message:
AttributeError: ‘DataFrame’ object has no attribute ‘_data’