CARVIEW |
Select Language
HTTP/2 200
date: Mon, 21 Jul 2025 15:13:27 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/scikit-learn/scikit-learn.git
etag: W/"ee076fa5bf5c22b60a7f34ab127a05e5"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=byMCFPI9aOu5T0%2FFBk5vF4CnV9VcGxbXX1P8JdFFI%2FpJNdBLDyuTo4KL3o5v%2FiT%2BVO%2Bsd2VIHqngTO1RZhiBx41iF%2FMIXwTNLFVWYvxyqROVjVPuHa5JFaXrP0l905q16%2BQKfpZjlZL5wzo1iM0lpIu8iFWkHKcQr016ovEgvlAv4pC%2B8%2Badv0sIizXgiaQ8eYeAg4oWRj39SoUEd0%2FHfR%2B70t8j6FAGaWKyBuT0uE%2Bn726aBEm5rXFp8TrnDBXWoo3Y4DsBKT4OusbZIoOhHg%3D%3D--HX7mlqUMUC5xzbKK--g7Y7PTPvfnhG65NqY%2BKMFA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.441026086.1753110807; Path=/; Domain=github.com; Expires=Tue, 21 Jul 2026 15:13:27 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Tue, 21 Jul 2026 15:13:27 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: ADD0:48455:2E1E8:359B3:687E5917
ENH: Add Drop Option to OneHotEncoder. (#12908) · scikit-learn/scikit-learn@350cd4a · GitHub
Copy file name to clipboardExpand all lines: doc/modules/preprocessing.rst
Copy file name to clipboardExpand all lines: sklearn/preprocessing/_encoders.py
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 26.1k
Commit 350cd4a
File tree
Expand file treeCollapse file tree
4 files changed
+314
-58
lines changedFilter options
- doc
- modules
- whats_new
- sklearn/preprocessing
- tests
Expand file treeCollapse file tree
4 files changed
+314
-58
lines changeddoc/modules/preprocessing.rst
Copy file name to clipboardExpand all lines: doc/modules/preprocessing.rst+21-3Lines changed: 21 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
489 | 489 |
| |
490 | 490 |
| |
491 | 491 |
| |
492 |
| - | |
| 492 | + | |
493 | 493 |
| |
494 | 494 |
| |
495 | 495 |
| |
| |||
516 | 516 |
| |
517 | 517 |
| |
518 | 518 |
| |
519 |
| - | |
| 519 | + | |
520 | 520 |
| |
521 | 521 |
| |
522 | 522 |
| |
| |||
533 | 533 |
| |
534 | 534 |
| |
535 | 535 |
| |
536 |
| - | |
| 536 | + | |
537 | 537 |
| |
538 | 538 |
| |
539 | 539 |
| |
540 | 540 |
| |
541 | 541 |
| |
542 | 542 |
| |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
543 | 561 |
| |
544 | 562 |
| |
545 | 563 |
| |
|
+5Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
282 | 282 |
| |
283 | 283 |
| |
284 | 284 |
| |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
285 | 290 |
| |
286 | 291 |
| |
287 | 292 |
| |
|
sklearn/preprocessing/_encoders.py
Copy file name to clipboardExpand all lines: sklearn/preprocessing/_encoders.py+166-38Lines changed: 166 additions & 38 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 |
| - | |
6 | 5 |
| |
7 | 6 |
| |
8 | 7 |
| |
| |||
158 | 157 |
| |
159 | 158 |
| |
160 | 159 |
| |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
161 | 172 |
| |
162 | 173 |
| |
163 | 174 |
| |
| |||
205 | 216 |
| |
206 | 217 |
| |
207 | 218 |
| |
208 |
| - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
209 | 226 |
| |
210 | 227 |
| |
211 | 228 |
| |
| |||
243 | 260 |
| |
244 | 261 |
| |
245 | 262 |
| |
246 |
| - | |
247 |
| - | |
248 |
| - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
249 | 266 |
| |
250 | 267 |
| |
251 | 268 |
| |
| |||
257 | 274 |
| |
258 | 275 |
| |
259 | 276 |
| |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
260 | 283 |
| |
261 | 284 |
| |
262 | 285 |
| |
| |||
274 | 297 |
| |
275 | 298 |
| |
276 | 299 |
| |
277 |
| - | |
| 300 | + | |
278 | 301 |
| |
279 | 302 |
| |
280 | 303 |
| |
281 | 304 |
| |
282 | 305 |
| |
283 | 306 |
| |
284 | 307 |
| |
| 308 | + | |
285 | 309 |
| |
286 | 310 |
| |
287 | 311 |
| |
| |||
346 | 370 |
| |
347 | 371 |
| |
348 | 372 |
| |
349 |
| - | |
350 | 373 |
| |
351 | 374 |
| |
352 | 375 |
| |
353 | 376 |
| |
354 | 377 |
| |
355 | 378 |
| |
356 | 379 |
| |
357 |
| - | |
358 |
| - | |
359 |
| - | |
360 |
| - | |
361 |
| - | |
362 |
| - | |
363 |
| - | |
364 |
| - | |
365 |
| - | |
366 |
| - | |
367 |
| - | |
368 |
| - | |
369 |
| - | |
370 |
| - | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
371 | 412 |
| |
372 | 413 |
| |
373 | 414 |
| |
| |||
399 | 440 |
| |
400 | 441 |
| |
401 | 442 |
| |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
402 | 450 |
| |
403 | 451 |
| |
404 | 452 |
| |
| |||
411 | 459 |
| |
412 | 460 |
| |
413 | 461 |
| |
414 |
| - | |
415 |
| - | |
416 |
| - | |
417 |
| - | |
| 462 | + | |
| 463 | + | |
418 | 464 |
| |
419 | 465 |
| |
420 | 466 |
| |
| |||
425 | 471 |
| |
426 | 472 |
| |
427 | 473 |
| |
| 474 | + | |
428 | 475 |
| |
429 | 476 |
| |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
430 | 527 |
| |
431 | 528 |
| |
432 | 529 |
| |
| |||
501 | 598 |
| |
502 | 599 |
| |
503 | 600 |
| |
504 |
| - | |
505 |
| - | |
506 |
| - | |
507 |
| - | |
| 601 | + | |
| 602 | + | |
508 | 603 |
| |
509 | 604 |
| |
510 | 605 |
| |
| |||
571 | 666 |
| |
572 | 667 |
| |
573 | 668 |
| |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
574 | 682 |
| |
575 |
| - | |
576 | 683 |
| |
577 | 684 |
| |
578 |
| - | |
579 | 685 |
| |
580 | 686 |
| |
581 | 687 |
| |
| |||
613 | 719 |
| |
614 | 720 |
| |
615 | 721 |
| |
616 |
| - | |
| 722 | + | |
617 | 723 |
| |
618 | 724 |
| |
619 | 725 |
| |
| |||
635 | 741 |
| |
636 | 742 |
| |
637 | 743 |
| |
638 |
| - | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
639 | 750 |
| |
640 | 751 |
| |
641 | 752 |
| |
| |||
651 | 762 |
| |
652 | 763 |
| |
653 | 764 |
| |
654 |
| - | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
655 | 778 |
| |
656 |
| - | |
657 | 779 |
| |
658 | 780 |
| |
659 |
| - | |
660 |
| - | |
| 781 | + | |
661 | 782 |
| |
662 |
| - | |
663 | 783 |
| |
| 784 | + | |
664 | 785 |
| |
665 | 786 |
| |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
666 | 794 |
| |
667 | 795 |
| |
668 | 796 |
| |
|
You can’t perform that action at this time.
0 commit comments