Fix Version/s: None
A comment in the code says that "skew returns a named tuple when called on an array with nan values." (Apparently this may have been a MaskedArray.) This has been fixed in scipy 1.9: https://github.com/scipy/scipy/issues/12548
As a result, the test fails due to trying to extract data from a float.
Please rewrite this so that it is compatible with both older and newer versions of scipy.
- is triggering
DM-35778 DM-35777 affects older code so pin scipy in rubin-env
Checked locally that this update works on both scipy=1.8.1 and scipy=1.9.0.