Skip to content

Commit 8c62b6b

Browse files
ENH add narwhals as dependency (scikit-learn#31127)
Co-authored-by: Marco Gorelli <33491632+MarcoGorelli@users.noreply.github.com>
1 parent 127caa0 commit 8c62b6b

48 files changed

Lines changed: 658 additions & 764 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
.. |NumPyMinVersion| replace:: 1.24.1
3535
.. |SciPyMinVersion| replace:: 1.10.0
3636
.. |JoblibMinVersion| replace:: 1.3.0
37+
.. |NarwhalsMinVersion| replace:: 2.0.1
3738
.. |ThreadpoolctlMinVersion| replace:: 3.2.0
3839
.. |MatplotlibMinVersion| replace:: 3.6.1
3940
.. |Scikit-ImageMinVersion| replace:: 0.22.0
@@ -68,6 +69,7 @@ scikit-learn requires:
6869
- Python (>= |PythonMinVersion|)
6970
- NumPy (>= |NumPyMinVersion|)
7071
- SciPy (>= |SciPyMinVersion|)
72+
- Narwhals (>= |NarwhalsMinVersion|)
7173
- joblib (>= |JoblibMinVersion|)
7274
- threadpoolctl (>= |ThreadpoolctlMinVersion|)
7375

asv_benchmarks/asv.conf.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
"scipy": ["1.14.0"],
7171
"cython": ["3.1.2"],
7272
"joblib": ["1.3.2"],
73+
"narwhals": ["2.0.1"],
7374
"threadpoolctl": ["3.2.0"],
7475
"pandas": ["2.2.2"]
7576
},

build_tools/circle/doc_environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ dependencies:
1010
- scipy
1111
- cython
1212
- joblib
13+
- narwhals
1314
- threadpoolctl
1415
- matplotlib
1516
- pandas

build_tools/circle/doc_linux-64_conda.lock

Lines changed: 74 additions & 74 deletions
Large diffs are not rendered by default.

build_tools/circle/doc_min_dependencies_environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ dependencies:
1010
- scipy=1.10.0 # min
1111
- cython=3.1.2 # min
1212
- joblib
13+
- narwhals
1314
- threadpoolctl
1415
- matplotlib=3.6.1 # min
1516
- pyamg=5.0.0 # min

build_tools/circle/doc_min_dependencies_linux-64_conda.lock

Lines changed: 61 additions & 60 deletions
Large diffs are not rendered by default.

build_tools/github/debian_32bit_lock.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ meson==1.11.1
1818
# via meson-python
1919
meson-python==0.19.0
2020
# via -r build_tools/github/debian_32bit_requirements.txt
21+
narwhals==2.20.0
22+
# via -r build_tools/github/debian_32bit_requirements.txt
2123
ninja==1.13.0
2224
# via -r build_tools/github/debian_32bit_requirements.txt
2325
packaging==26.2

build_tools/github/debian_32bit_requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# build_tools/update_environments_and_lock_files.py
44
cython
55
joblib
6+
narwhals
67
threadpoolctl
78
pytest
89
pytest-xdist

build_tools/github/pylatest_conda_forge_cuda_array-api_linux-64_conda.lock

Lines changed: 58 additions & 57 deletions
Large diffs are not rendered by default.

build_tools/github/pylatest_conda_forge_cuda_array-api_linux-64_environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ dependencies:
1111
- scipy
1212
- cython
1313
- joblib
14+
- narwhals
1415
- threadpoolctl
1516
- matplotlib
1617
- pandas

0 commit comments

Comments
 (0)