Repository: Lightning-AI/torchmetrics (language: python)

Issue:
fix: compatibility audio do with new `scipy`
## What does this PR do?

Posting fix https://github.com/Lightning-AI/torchmetrics/pull/2671#issuecomment-2328708232 with compatibility issue:
```
Traceback (most recent call last):
  File "/__w/4/s/tests/unittests/nominal/test_cramers.py", line 64, in _reference_dython_cramers_v
    from dython.nominal import cramers_v
  File "/usr/local/lib/python3.9/dist-packages/dython/__init__.py", line 1, in <module>
    from . import (
  File "/usr/local/lib/python3.9/dist-packages/dython/model_utils.py", line 4, in <module>
    from scikitplot.helpers import binary_ks_curve
  File "/usr/local/lib/python3.9/dist-packages/scikitplot/__init__.py", line 2, in <module>
    from . import metrics, cluster, decomposition, estimators
  File "/usr/local/lib/python3.9/dist-packages/scikitplot/metrics.py", line 27, in <module>
    from scipy import interp
ImportError: cannot import name 'interp' from 'scipy' (/usr/local/lib/python3.9/dist-packages/scipy/__init__.py)
```

<details>
  <summary>Before submitting</summary>

- [x] Was this **discussed/agreed** via a Github issue? (no need for typos and docs improvements)
- [x] Did you read the [contributor guideline](https://github.com/Lightning-AI/torchmetrics/blob/master/.github/CONTRIBUTING.md), Pull Request section?
- [ ] Did you make sure to **update the docs**?
- [ ] Did you write any new **necessary tests**?

</details>

<details>
  <summary>PR review</summary>

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

</details>

## Did you have fun?

Make sure you had fun coding 🙃


<!-- readthedocs-preview torchmetrics start -->
----
📚 Documentation preview 📚: https://torchmetrics--2733.org.readthedocs.build/en/2733/

<!-- readthedocs-preview torchmetrics end -->


Discussion / hints:
## [Codecov](https://app.codecov.io/gh/Lightning-AI/torchmetrics/pull/2733?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Lightning-AI) Report
Attention: Patch coverage is `84.21053%` with `3 lines` in your changes missing coverage. Please review.
> Project coverage is 69%. Comparing base [(`80929b5`)](https://app.codecov.io/gh/Lightning-AI/torchmetrics/commit/80929b53db36cc045da4b8b017db82e46a5159bb?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Lightning-AI) to head [(`f6a55ac`)](https://app.codecov.io/gh/Lightning-AI/torchmetrics/commit/f6a55acefb4cd3162ff09cc45ca691eef2a049be?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Lightning-AI).
> Report is 1 commits behind head on master.

<details><summary>Additional details and impacted files</summary>


```diff
@@          Coverage Diff           @@
##           master   #2733   +/-   ##
======================================
  Coverage      69%     69%           
======================================
  Files         329     329           
  Lines       18065   18093   +28     
======================================
+ Hits        12491   12514   +23     
- Misses       5574    5579    +5     
```

</details>

Fix patch:
diff --git a/requirements/visual.txt b/requirements/visual.txt
index 269a45fc7bb..1cdc4060a8b 100644
--- a/requirements/visual.txt
+++ b/requirements/visual.txt
@@ -1,5 +1,5 @@
 # NOTE: the upper bound for the package version is only set for CI stability, and it is dropped while installing this package
 #  in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment
 
-matplotlib >=3.3.0, <3.10.0
+matplotlib >=3.6.0, <3.10.0
 SciencePlots >= 2.0.0, <2.2.0


Test patch:
diff --git a/requirements/classification_test.txt b/requirements/classification_test.txt
index 688067c482a..8cadb2b3e3e 100644
--- a/requirements/classification_test.txt
+++ b/requirements/classification_test.txt
@@ -1,7 +1,7 @@
 # NOTE: the upper bound for the package version is only set for CI stability, and it is dropped while installing this package
 #  in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment
 
-pandas >=1.4.0, <=2.2.2
+pandas >1.4.0, <=2.2.2
 netcal >1.0.0, <1.4.0 # calibration_error
 numpy <2.2.0
 fairlearn # group_fairness
diff --git a/requirements/nominal_test.txt b/requirements/nominal_test.txt
index 09f77b20475..7ee5809af6f 100644
--- a/requirements/nominal_test.txt
+++ b/requirements/nominal_test.txt
@@ -1,7 +1,7 @@
 # NOTE: the upper bound for the package version is only set for CI stability, and it is dropped while installing this package
 #  in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment
 
-pandas >1.0.0, <=2.2.2 # cannot pin version due to numpy version incompatibility
-dython <=0.7.7
+pandas >1.4.0, <=2.2.2 # cannot pin version due to numpy version incompatibility
+dython ~=0.7.6
 scipy >1.0.0, <1.15.0 # cannot pin version due to some version conflicts with `oldest` CI configuration
 statsmodels >0.13.5, <0.15.0