docs: improve doctests for ndarray instances in stats/cumax
#60790
do_not_merge.yml
on: pull_request
Check for Do Not Merge label
stats/cumax
#60790