Sum a panel along multiple dimensions #11857
Labels
API Design
Numeric Operations
Arithmetic, Comparison, and Logical operations
Reshaping
Concat, Merge/Join, Stack/Unstack, Explode
numpy's
sum()
function allows specifying a tuple of axis values for higher-dimensional arrays, but when it is called this way on a PandasPanel
orPanel4D
it raises a ValueError:Right now the workaround is to call
np.asarray()
on the Pandas object first and then convert it back toSeries
(orDataFrame
, I suppose) once the result is returned, being sure to apply the correct index to the resulting object.The text was updated successfully, but these errors were encountered: