azure-sdk-for-python
azure-sdk-for-python copied to clipboard
Add serialization support for pandas and numpy-like objects
We introduce logic in the AzureJSONEncoder that allows to serialize objects that implement some particular methods that are present in numpy number, numpy ndarray, pandas dataframes.
The implementation assumes that any object that has those methods will be serialized using them. If you think restricting this only to numpy and pandas object might be better, I can add some introspection logic to target only those.
This PR is loosely related to this issue from the old msrest package: https://github.com/Azure/msrest-for-python/issues/257
Thank you for your contribution mzat-msft! We will review the pull request and get back to you soon.
Hi @mzat-msft. Thank you for your interest in helping to improve the Azure SDK experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days.
Hi @mzat-msft. Thank you for your contribution. Since there hasn't been recent engagement, we're going to close this out. Feel free to respond with a comment containing "/reopen" if you'd like to continue working on these changes. Please be sure to use the command to reopen or remove the "no-recent-activity" label; otherwise, this is likely to be closed again with the next cleanup pass.