Commit fbb8e57
feat: Narwhals for dataframe-agnostic codebase (#671)
* placeholder to develop narwhals features
* feat: make `ColumnDropper` dataframe-agnostic (#655)
* feat: make ColumnDropped dataframe-agnostic
* use narwhals[polars] in pyproject.toml, link to list of supported libraries
* note that narwhals is used for cross-dataframe support
* test refactor
* docstrings
---------
Co-authored-by: FBruzzesi <francesco.bruzzesi.93@gmail.com>
* feat: make ColumnSelector dataframe-agnostic (#659)
* columnselector with test rufformatted
* adding whitespace
* fixed the fit and transform
* removed intendation in examples
* font:false
* feat: make `add_lags` dataframe-agnostic (#661)
* make add_lags dataframe-agnostic
* try getting tests to run?
* patch: cvxpy 1.5.0 support (#663)
---------
Co-authored-by: Francesco Bruzzesi <42817048+FBruzzesi@users.noreply.github.com>
* Make `RegressionOutlier` dataframe-agnostic (#665)
* make regression outlier df-agnostic
* need to use eager-only for this one
* pass native to check_array
* remove cudf, link to check_X_y
* feat: Make InformationFilter dataframe-agnostic
* Make Timegapsplit dataframe-agnostic (#668)
* make timegapsplit dataframe-agnostic
* actually, include cuDF
* feat: make FairClassifier data-agnostic (#669)
* start all over
* fixture working
* wip
* passing tests - again
* pre-commit complaining
* changed fixture on test_demographic_parity
* feat: Make PandasTypeSelector selector dataframe-agnostic (#670)
* make pandas dtype selector df-agnostic
* bump version
* 3.8 compat
* Update sklego/preprocessing/pandastransformers.py
Co-authored-by: Francesco Bruzzesi <42817048+FBruzzesi@users.noreply.github.com>
* fixup pyproject.toml
* unify (and test!) error message
* deprecate
* update readme
* undo contribution.md change
---------
Co-authored-by: Francesco Bruzzesi <42817048+FBruzzesi@users.noreply.github.com>
* format typeselector and bump version
* feat: Make grouped and hierarchical dataframe-agnostic (#667)
* feat: make grouped and hierarchical dataframe-agnostic
* add pyarrow
* narwhals grouped_transformer
* grouped transformer eureka
* hierarchical narwhalified
* so close but so far
* return series instead of DataFrame for y
* grouped WIP
* merge branch and fix grouped
* future annotations
* format
* handling negative indices
* solve conflicts
* hacking C
* fairness: change C values in tests
---------
Co-authored-by: Marco Edward Gorelli <marcogorelli@protonmail.com>
Co-authored-by: Magdalena Anopsy <74981211+anopsy@users.noreply.github.com>
Co-authored-by: Dea María Léon <deamarialeon@gmail.com>1 parent 6a9654f commit fbb8e57
File tree
35 files changed
+1158
-736
lines changed- .github/workflows
- docs
- api
- sklego
- meta
- preprocessing
- tests
- test_estimators
- test_meta
- test_model_selection
- test_pandas_utils
- test_preprocessing
35 files changed
+1158
-736
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
41 | 51 | | |
42 | 52 | | |
43 | | - | |
| 53 | + | |
44 | 54 | | |
45 | 55 | | |
46 | 56 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
| 24 | + | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| 65 | + | |
| 66 | + | |
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
| |||
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
114 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
| 115 | + | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
| 165 | + | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
269 | | - | |
| 268 | + | |
| 269 | + | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
308 | | - | |
| 307 | + | |
| 308 | + | |
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
381 | | - | |
| 380 | + | |
| 381 | + | |
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | | - | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
496 | | - | |
497 | | - | |
| 496 | + | |
| 497 | + | |
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
| |||
0 commit comments