You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~/sandbox/dev/pdroot/pdroot/draw.py in tree_draw_to_array(df, varexp, sel)
49 dims = []
50 for expr in varexp_exprs:
---> 51 vals = eval(expr)
52
53 if sel:
~/sandbox/dev/pdroot/pdroot/draw.py in <module>
TypeError: min() got multiple values for argument 'axis'
though regular pandas df.eval("min(a,b)") says min isn't a supported function, so there's technically no loss here. However, df.draw_to_array("np.minimum(a,b)") actually works (while pandas eval doesn't recognize np), so maybe if there are two arguments to min, we use np.minimum instead of ak.min(..., axis=1) [1]?
gives
though regular pandas
df.eval("min(a,b)")
says min isn't a supported function, so there's technically no loss here. However,df.draw_to_array("np.minimum(a,b)")
actually works (while pandas eval doesn't recognize np), so maybe if there are two arguments tomin
, we usenp.minimum
instead ofak.min(..., axis=1)
[1]?[1]
The text was updated successfully, but these errors were encountered: