pymc
pymc copied to clipboard
Infer dims & coords from xarray variables passed to pm.Data
addresses #5791
- [x] Inferring dims from named pandas indexes
- [x] Inferring dims from DataArrays
- [x] Inferring coords from DataArrays
- [ ] A unit test
- [ ] Possibly a (backwards compatible with deprecation warning) rename of the export_index_as_coords to infer_dims_and_coords.
cc: @michaelosthege (I might have made errors, also I just emulated the pandas code for xarray, not sure if it makes sense)