-
Notifications
You must be signed in to change notification settings - Fork 174
feat: add Schema.to_(arrow|pandas|polars)
#1924
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
dangotbanned
merged 39 commits into
narwhals-dev:main
from
dangotbanned:schema-convert-api
Feb 8, 2025
Merged
Changes from 31 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
54760af
feat: add `nw.Schema.to_*` methods
dangotbanned e9ccaad
Merge remote-tracking branch 'upstream/main' into schema-convert-api
dangotbanned db5bac2
Merge branch 'main' into schema-convert-api
dangotbanned e72cb75
Merge remote-tracking branch 'upstream/main' into schema-convert-api
dangotbanned e09426d
feat: replace `native_namespace` -> `backend`
dangotbanned 3826e1f
Merge remote-tracking branch 'upstream/main' into schema-convert-api
dangotbanned d1e0576
feat: adds `Schema._version`
dangotbanned 62b6e24
revert: remove `Schema.to_native`
dangotbanned fe96f8c
refactor: drop `backend`, use hard imports
dangotbanned a575ea8
refactor: use `Schema.to_(arrow|polars)` in `from_dict`
dangotbanned 72fc3de
refactor: use `Schema..to_pandas` in `from_dict`
dangotbanned 82b1623
refactor: remove `version` parameter from `_from_dict_impl`
dangotbanned 7d90555
chore: ignore banned imports
dangotbanned 3957699
Merge remote-tracking branch 'upstream/main' into schema-convert-api
dangotbanned 8925445
test: adds `test_schema_to_pandas`
dangotbanned 38adce2
Merge remote-tracking branch 'upstream/main' into schema-convert-api
dangotbanned 83949f8
test: use `[ns]` instead of `[us]`
dangotbanned e62221e
fix: return `dict` when `pl.Schema` unavailable
dangotbanned 347f5ac
fix: handle unequal length case
dangotbanned d423a0b
docs: add docs for new methods
dangotbanned fd28337
docs: add "Returns" to all
dangotbanned bce4b20
Merge branch 'main' into schema-convert-api
dangotbanned 4581d95
refactor: `to_pandas` -> positional or keyword
dangotbanned 95a123a
refactor: use `Implementation.PANDAS`
dangotbanned 47ad060
test: try removing doctest skip
dangotbanned 99b3925
test: fix `to_polars` doctest repr
dangotbanned 881aae0
style: rename `it` to `schema`
dangotbanned c86512e
Merge remote-tracking branch 'upstream/main' into schema-convert-api
dangotbanned 9f72d7c
Merge branch 'main' into schema-convert-api
dangotbanned 5e9beb2
match pandas dtype_backend
MarcoGorelli bae64af
py39 compat
MarcoGorelli b901957
remove Any in return from Schema.to_polars
MarcoGorelli bde48a8
fixup
MarcoGorelli 0133050
missing else
MarcoGorelli 5c26e9a
coverage
MarcoGorelli a2181c6
Merge remote-tracking branch 'upstream/main' into schema-convert-api
dangotbanned 3bcebc1
refactor(typing): lie more explicitly
dangotbanned 7b89936
chore: move pragma
dangotbanned 10b04d3
Merge branch 'main' into schema-convert-api
dangotbanned File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.