-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
I'm currently transitioning sequences of pandas Panels over to xray Datasets. Part of our process applies a set of functions to Panels; for example:
panel = panel.apply(lambda x: x.rank(ascending=False), axis=(1, 2))
df = np.nanpercentile(panel, q=75, axis=2)One of the benefits of xray is the clarity that comes from named axes. Is there a way of applying a function over named axes?
For example:
result = data_array.apply(np.argsort, axis=('Risk', 'Dates'))
result = data_array.apply(np.nanpercentile, axis='Dates')Metadata
Metadata
Assignees
Labels
No labels