main.deepforest.predict_file should be able to take in a dataframe, not just a csv file. #797
Labels
API
This tag is used for small improvements to the readability and usability of the python API.
good first issue
Good for newcomers
Looking at the code base.
https://deepforest.readthedocs.io/en/latest/_modules/deepforest/main.html#deepforest.predict_file
it actually looks like dataset.TreeDataset() is the problem here, because utilities.read_file is definitely flexible enough. The docstring of predict_file should be updated and the argument name should be changed (but a deprecation warning added until 2.0), but its the dataset class, which the user really never sees that often that can be updated. I think this would still be considered a patch.
The text was updated successfully, but these errors were encountered: