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
Loading / saving features doesn't support file-like objects as input #73
Comments
It would be great if we could also have the option to serialize to a string rather than a file-like object using cloudpickle.dumps(), cloudpickle.loads(). Maybe if the file parameter is omitted. This is similar to how pandas.DataFrame.to_csv() works: https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.to_csv.html |
a related question was recently asked about on stackoverflow. I left potential workaround for the S3 case: https://stackoverflow.com/questions/55482233/can-feature-tools-save-feature-list-directly-to-s3/55486555#55486555. this issue could be extended to also handle writing to s3 if the filepath begins with |
To summarize the expected calls:
ft.save_features(features)
ft.save_features(features, '/path/to/save/to.txt')
ft.save_features(features, f)
ft.save_features(features, "s3://bucket/file.txt") |
Currently Featuretools supports saving a list of features to disk and loading them from disk using a file path as an input. If these functions supported file-like objects as an alternate input we could save features to string buffers or unnamed temporary files.
The text was updated successfully, but these errors were encountered: