Repository navigation
Docs: README usage example and examples/ quickstart notebook (#7) - #15
Closed
mertcankaratass wants to merge 4 commits into
Closed
mertcankaratass wants to merge 4 commits into
mertcankaratass wants to merge 4 commits into
Conversation
Encodes object, string and category columns using sorted categories learned in fit; numeric columns pass through. Overrides get_feature_names_out for the generated one-hot columns. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cover both methods, unknown handling, validation, missing values, name collisions, get_feature_names_out and scikit-learn compatibility. Compute codes with Index.get_indexer, since building a Categorical from values outside its categories is deprecated in pandas. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #7
Summary
Adds a runnable quick start example to the README and an end-to-end interactive tutorial notebook in
examples/quickstart.ipynb.fit_transformon train,transformon test, andget_feature_names_out(). The printed output matches code execution exactly.examples/quickstart.ipynb:MissingValueImputer,CategoricalEncoder,FeatureScaler), then composes them inPipeline.get_feature_names_out().make_pipelineandcross_val_score(cv=5).pyproject.toml: addedjupyterandnbconverttodevextra.How was it tested
pytest: 134 passed in 1.92sjupyter nbconvert --to notebook --execute --inplace examples/quickstart.ipynb: runs cleanly with exit code 0ruff check .: All checks passed!ruff format --check .: 15 files already formattedChecklist
ruff format .andruff check .passpytestpassesCONTRIBUTING.mdsklearncross_val_score