Skip to content

Commit 05af63f

Browse files
authored
MAINT: stats.lmoment: fixup keepdims behavior (scipy#21843)
1 parent fb88f55 commit 05af63f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scipy/stats/_stats_py.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10279,7 +10279,7 @@ def _prk(r, k):
1027910279

1028010280

1028110281
@_axis_nan_policy_factory( # noqa: E302
10282-
_moment_result_object, n_samples=1, result_to_tuple=lambda x: (x,),
10282+
_moment_result_object, n_samples=1, result_to_tuple=_moment_tuple,
1028310283
n_outputs=lambda kwds: _moment_outputs(kwds, [1, 2, 3, 4])
1028410284
)
1028510285
def lmoment(sample, order=None, *, axis=0, sorted=False, standardize=True):

0 commit comments

Comments
 (0)