Commit Graph

48 Commits

Author SHA1 Message Date
Olivier Grisel 279388d9ed
DOC Improve get_feature_names_out docstrings (#22718)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-03-07 13:02:12 -05:00
Christian Ritter 08af5278f5
[MRG] SimpleImputer skipped feature warning with feature names (#21617)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2021-12-01 16:04:08 +01:00
Christian Ritter 74bf394b87
[MRG] API Warn upon removal of NaN columns (#21448)
Co-authored-by: Oleh Kozynets <oleh.kozynets@outlook.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-11-05 18:15:10 +01:00
Ying Xiong 5256fb3649
[MRG] Support pd.NA in StringDtype columns for SimpleImputer (#21114)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-11-05 12:13:21 +01:00
Thomas J. Fan 8f621ade01
ENH Adds feature_names_out to impute module (#21078) 2021-10-21 14:39:29 +02:00
Juan Martin Loyola 1b51ae220e
DOC Ensures that MissingIndicator passes numpydoc validation (#21149) 2021-09-27 10:27:19 +02:00
Juan Martin Loyola 07a9dc93af
DOC Ensures that SimpleImputer passes numpydoc validation (#21077)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-09-18 10:35:32 +02:00
Thomas J. Fan 786c4e5e39
DOC Adds feature_names_in_ to docstrings (#20787) 2021-08-26 13:44:45 +02:00
Thomas J. Fan 3ae7c76153
STY Enables black with experimental_string_processing=true (#20412) 2021-06-29 09:47:04 +02:00
Thomas J. Fan 82df48934e
MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
Guillaume Lemaitre 1cd282d600
DOC add n_features_in_ in the documentation (#20236) 2021-06-09 16:58:03 +02:00
Tom Dupré la Tour f6e6ad2d9e
MNT clean futurewarning for 1.0 | _deprecate_positional_args (#20002)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-05-14 11:30:27 -04:00
kmatt10 5e85941bd6
DOC Added return value info to SimpleImputer.transform docstring (#20005)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-05-11 10:10:41 +02:00
David Katz 0937b4ab48
FIX change stats.mode to Counter for better performance with object dtype (#18987) 2020-12-14 16:50:58 +01:00
Manuel López-Ibáñez 1e53ae2836
DOC Document behavior with duplicates for SimpleImputer(strategy=most_frequent) (#18923) 2020-11-26 17:35:54 +01:00
Thomas J. Fan 5fb02bb7bf
ENH Adds n_features_in_ checks to impute module (#18580)
* ENH Adds n_features_in_ checks to impute module
2020-11-20 14:29:03 -08:00
Thomas J. Fan 53fea53c6f
DOC Fix docstring for class MissingIndicator (#18446) 2020-09-29 21:24:32 +02:00
Guillaume Lemaitre 21569e719c
TST Common test preserve dtype (#18054)
Co-authored-by: Sebastian Kießling <sebkies@gmail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-09-08 10:13:53 +02:00
Albert Villanova del Moral 647fcb1ac1
DOC Fix A to uppercase in See Also docstring section (#18332) 2020-09-04 10:35:01 -04:00
Albert Villanova del Moral 875d32fe55
DOC Fix versionadded/versionchanged for 0.24 (#18312) 2020-09-01 10:51:01 +02:00
Harsh Soni c50597926f
ENH Allow precomputed mask as input for MissingIndicator (#15089)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Vermasoumitra020 <sonisoumitra@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-08-31 16:26:38 -04:00
Thomas J. Fan f428694223
CLN Uses bool instead of np.bool (#17875) 2020-07-09 13:03:45 -07:00
Srimukh Sripada 0a3ab419f8
ENH Add inverse_transform feature to SimpleImputer (#17612) 2020-06-26 00:13:56 +10:00
Thomas J. Fan 7cc0177f8e
MNT Replaces numpy alias with builtin typse (#17687)
* MNT Replaces numpy alias with builtin typse

* STY Lint error
2020-06-24 16:51:51 +02:00
Saurabh Jain 00bc681e10
DOC shorten class links in docstring using tilde (#17470)
* added tilde to bunch of files

* Updated _kde.py

Changed array_like to array-like

* Updated _kde.py

Removed space

* updated _kde.py

Added full stop

* PEP8

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-06-16 10:44:13 +02:00
Michael 77688126df
DOC update the default in datasets and impute modules to follow guideline (#17512)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-06-15 15:44:07 +02:00
Ayako YAGI 3fb9e758a5
Fix simple imputer for string input (#17526)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-06-09 16:06:33 +02:00
Thomas J Fan acbe13c07d
ENH Adds pandas IntegerArray support to check_array (#16508) 2020-04-28 19:00:12 +02:00
Adrin Jalali dc0cc6e9be
[MRG] API kwonly args in impute, inspection, kernel_ridge (#16926)
, and linear_model
2020-04-19 22:58:47 +02:00
Alex Henrie 438bb3a438
MNT Remove unused imports (#16665) 2020-03-11 10:01:51 +11:00
Nicolas Hug d205638475
MNT Introduction of n_features_in_ attr with _validate_data mtd (#16112) 2020-02-29 09:05:11 -05:00
Thomas Schmitt 4fe4d27eb1 DOC Add version_added label for impute module (#15549) 2020-01-09 15:59:30 +01:00
Pulkit Mehta 2a185f91b3 DOC Improve documentation of default values for imputers (#15964) 2019-12-26 12:49:45 +01:00
Guillaume Lemaitre 332759f416 ENH add missing indicator in KNNImputer (#15010) 2019-10-28 09:44:25 -04:00
Andreas Mueller feabb54155 API Improves error msg when passing non-arrays to SimpleImputer (#14878) 2019-10-18 11:28:53 -04:00
Thomas J Fan 3b9f94238d MAINT Makes sure mask is private (#15091) 2019-09-25 19:34:21 +02:00
Thomas J Fan 14f5302b70 DOC Link items explictly (#14817)
* DOC Link items explictly

* STY

* DOC Link another
2019-09-05 11:37:05 +02:00
Andreas Mueller 03ea20db0f Fix mixin inheritance order, allow overwriting tags (#14884) 2019-09-05 10:13:30 +02:00
Thomas J Fan 2d1b9e3513 FEA Adds KNNImputer (#12852) 2019-09-04 09:08:59 +10:00
Jon Cusick 82ea3f7f80 DOC Add comment about scipy.stats.mstats.mode for SimpleImputer(strategy=most_frequent) (#14399) 2019-08-14 17:15:17 -04:00
Andreas Mueller 92af3dabbb MAINT simplify check_is_fitted to use any fitted attributes (#14545) 2019-08-13 22:09:07 +02:00
Harsh Soni e8ca95616f DOC Fix docstring in MissingIndicator class regarding the output shape (#14506) 2019-07-30 17:01:45 +02:00
Harsh Soni 7b8b986b83 ENH Change fit_transform of MissingIndicator class to get mask only once (#14356) 2019-07-28 09:20:53 +10:00
Frank Hoang 7f50e82663 FIX Initialize MissingIndicator with error_on_new = False (#13974) 2019-06-24 11:35:26 -04:00
alexgoryainov c0d77d4d37 DOC: document resulting NaN in SimpleImputer.statistics_ (#14129) 2019-06-21 09:10:15 +02:00
Guillaume Lemaitre 8fe89ea524 FIX wrong usage and occurrence of string tag (#14043) 2019-06-13 18:00:43 +08:00
Thomas J Fan 2e7e06b78f [MRG] Doctest with print change only adjusts default options for doctest (#13991) 2019-06-01 10:53:45 +02:00
Joel Nothman 1675e77e3e
API Make IterativeImputer experimental (#13824) 2019-05-09 09:28:44 +10:00