id,node_id,number,title,user,state,locked,assignee,milestone,comments,created_at,updated_at,closed_at,author_association,active_lock_reason,draft,pull_request,body,reactions,performed_via_github_app,state_reason,repo,type 189632049,MDU6SXNzdWUxODk2MzIwNDk=,1125,DataArrayRolling.reduce changes dimensions order,4031219,closed,0,,,3,2016-11-16T08:44:28Z,2017-02-27T17:11:02Z,2017-02-27T17:11:02Z,NONE,,,,"Seems like a bug. Code to reproduce: ``` import numpy as np import xarray as xr arr = xr.DataArray(np.random.rand(3, 3, 100)) rolled = arr.rolling(dim_2=3) print(rolled.mean().dims) print(rolled.reduce(np.mean).dims) ``` Output: ``` ('dim_0', 'dim_1', 'dim_2') ('dim_2', 'dim_0', 'dim_1') ``` P.S. Package version: ``` $ pip show xarray --- Metadata-Version: 2.0 Name: xarray Version: 0.8.2 Summary: N-D labeled arrays and datasets in Python Home-page: https://github.com/pydata/xarray Author: xarray Developers Author-email: xarray@googlegroups.com Installer: pip License: Apache Location: /usr/lib/python3.5/site-packages Requires: numpy, pandas Classifiers: Development Status :: 4 - Beta License :: OSI Approved :: Apache Software License Operating System :: OS Independent Intended Audience :: Science/Research Programming Language :: Python Programming Language :: Python :: 2 Programming Language :: Python :: 2.7 Programming Language :: Python :: 3 Programming Language :: Python :: 3.3 Programming Language :: Python :: 3.4 Programming Language :: Python :: 3.5 Topic :: Scientific/Engineering ```","{""url"": ""https://api.github.com/repos/pydata/xarray/issues/1125/reactions"", ""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,completed,13221727,issue