BUG: Rolling on Dataset
See original GitHub issueThis looks like it’s available with dir
/ tab complete, but actually isn’t:
In [13]: xr.DataArray(np.random.rand(10,3)).to_dataset('dim_1').rolling
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-13-438d3638a0d0> in <module>()
----> 1 xr.DataArray(np.random.rand(10,3)).to_dataset('dim_1').rolling
/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/xarray/core/common.py in __getattr__(self, name)
135 return source[name]
136 raise AttributeError("%r object has no attribute %r" %
--> 137 (type(self).__name__, name))
138
139 def __setattr__(self, name, value):
AttributeError: 'Dataset' object has no attribute 'rolling'
I think this could be easy to implement as an .apply
operation? (indeed, that could be a reasonable path for a whole host of operations - i.e. try and apply them to each array in the ds?)
Also, as a very narrow point, I’m not sure why .rolling_cls
is public? Probably should be private?
Finally, the Rolling implementation is pretty sweet. I’ve been getting my hands dirty in the pandas one recently, and that we can have something as well featured as that with so few lines of code 👍
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Best Practices for Reporting Bugs | Data Science and Machine ...
Best Practices for Reporting Bugs. ... We are rolling out a fix. ... How actively is the Kaggle team monitoring the forums for...
Read more >How to reduce the incidence of data related bugs? - Questions
The automation environment data is managed by either clearing down all the database tables before a test run, or backing up and restoring...
Read more >BUG-000097715: Image datasets with yaw, pitch, and roll ...
Synopsis. Image datasets with yaw, pitch, and roll values fail in Drone2Map for ArcGIS during processing with the following error, "XML file validation...
Read more >Create an Active bugs Power BI report - Azure DevOps
Learn how to create an Analytics view to filter a dataset for active bugs and then create a trend report in Power BI....
Read more >Machine Learning-Based Bug Handling in Large-Scale ...
t-SNE rendering of a bug database using unstructured text via ... instance, a random variable X could take the event ”the rolled die...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This just happened to me too:
Not fixed yet, but PRs welcome