-
Notifications
You must be signed in to change notification settings - Fork 1k
[REVIEW] Add __setitem__() #2442
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
Merged
Changes from 87 commits
Commits
Show all changes
101 commits
Select commit
Hold shift + click to select a range
6134d56
Use join for series loc indexing - fails on categorical loc test
shwina 43976fe
black
shwina b786286
Enable conversinon from string to categorical columns
shwina b5e0811
Merge branch 'as-categorical' into slice-loc-improve
shwina 7b98c69
Add utility to convert from categorical to string columns
shwina 0a3d823
Fix column.take() for empty input
shwina 44632d4
Add test for empty loc
shwina 0cec124
Handle categorical index in loc correctly
shwina 020f9be
Restore else statement
shwina 0d44b8c
Simplify dtype equality check
shwina 29db7bc
Better naming
shwina 14d3efe
changelog
shwina 72c9e89
Fix checking for wrong dtype
shwina 6a2d664
flake8
shwina 88795f9
Merge branch 'opt-gather-scatter' of https://github.com/hummingtree/c…
shwina 4ba36b5
Rename selvals to data for consistency
shwina f9f84bf
Replace multiple apply_gather* functions with a single one
shwina 0c8ad34
Merge branch 'branch-0.9' into loc-perf
kkraus14 336ee22
Eliminate duplication of __getitem__ logic between Series and Column
shwina daa4ccb
Merge branch 'branch-0.9' of https://github.com/rapidsai/cudf into ad…
shwina 440dfe8
More work on localizing __getitem__() to Column.__getitem__()
shwina efced4c
Enable apply_gather to handle both Column and list of Column
shwina ec18e9a
Use base implementation of element_indexing() and take() in StringColumn
shwina 5ee7f72
Remove check for non-zero null count in StringIndex
shwina f6687f4
Merge branch 'branch-0.9' of https://github.com/rapidsai/cudf into lo…
shwina 5fbe16c
Remove unused import
shwina 04d589a
Restore import
shwina 515abe6
Merge branch 'branch-0.9' of https://github.com/rapidsai/cudf into ad…
shwina f1e2778
Move indexing/selection tests to new file test_indexing.py
shwina bb448ca
Merge branch 'opt-gather-scatter' of https://github.com/hummingtree/c…
shwina 2ec445b
Add basic Series.__setitem__()
shwina 8adea18
Merge remote-tracking branch 'origin/loc-perf' into add-setitem
shwina e3adf46
Default to label-based indexing in Series.__setitem__
shwina 7014577
Add Python bindings for cudf::copy_range
shwina 31c1d56
Remove check for zero null_count in column_view_from_column
shwina 48a36cf
Add basic slice __setitem__
shwina ca72358
Handle negative indices and dtype in setitem
shwina 986f399
fix dtype handling in setitem
shwina 8fd5b4e
Merge branch 'opt-gather-scatter' of https://github.com/hummingtree/c…
shwina fa7438a
Merge branch 'simplify-getitem' into add-setitem
shwina bcaf234
Add series loc/iloc setitem
shwina 8f608c3
Simpilify Series.take()
shwina d0a33c3
Simplify DataFrame.take
shwina e1393d5
Merge branch 'loc-perf' into simplify-getitem
shwina 549415e
Pull up SeriesIlocIndexer
shwina 35286bd
Add loc setitem tests
shwina e519d5d
Improve dtype handling
shwina 810e416
Merge branch 'branch-0.9' of https://github.com/rapidsai/cudf into ad…
shwina fc8474a
Remove string methods reintroduced after merge
shwina ee6923d
style?
shwina c751b7b
Merge branch 'simplify-getitem' into add-setitem
shwina 671e5ce
Merge branch 'branch-0.9' of https://github.com/rapidsai/cudf into ad…
shwina c5e21aa
getitem/setitem fixes after branch-0.9 merge
shwina 206660f
Merge branch 'branch-0.9' of https://github.com/rapidsai/cudf into ad…
shwina a92cbb2
flake8
shwina 07dfc12
Cython flake8
shwina 4915753
changelog
shwina d7cff85
Add a basic DataFrame.__setitem__()
shwina 204a77f
Merge branch 'branch-0.9' of https://github.com/rapidsai/cudf into ad…
shwina 6f39ca4
Fix ununsed variable
shwina 5dee4d1
Fix handling of inplace param in add_categories
shwina 3186e3f
Add broadcasting of value into categorical column in setitem
shwina dd693f2
Fix setitem test and a couple of setitem bugs
shwina c7a2ae8
Remove a circular import issue
shwina aab0216
Add index iloc
shwina 8d240d7
Forbid df.loc[] with multiindex for now
shwina 869e0e4
Add basic multiindex iloc setitem tests
shwina a2aac9a
Fix scalar_broadcast_to
shwina 78f32fa
Copy scatter results to nvcategory (credit to @hummingtree)
shwina 677ccc4
Rename is_single_value to is_scalar and improve scalar handling
shwina 79729be
Add more setitem tests
shwina d57607f
Handle setitem with boolmask
shwina d4cbf5d
Handle setitem with None
shwina 4b6fa22
Add at() and iat() as aliases for loc() and iloc(0
shwina 3f31906
Merge branch 'branch-0.9' of https://github.com/rapidsai/cudf into ad…
shwina dcf1efc
Fix nvcategory issue in copy_range
shwina 98494eb
Fix issue relating to scatter/nvcategory (credit: @hummingtree)
shwina e305b79
Add tests for string setitem
shwina 2c3d1f6
Merge branch 'branch-0.9' of https://github.com/rapidsai/cudf into ad…
shwina 88d8011
Fixes to gdf_dtype_from_value utility
shwina 946a3c1
Avoid typecast when casting to the same dtype
shwina ce227cf
Fix call to apply_gather
shwina 0401ee7
Fix fillna() for datetime
shwina 0cdefc2
Remove unused utility function
shwina d2e4c9e
Ensure dtype consistency before join in labels_from_indices
shwina f9285ca
Merge branch 'branch-0.9' of https://github.com/rapidsai/cudf into ad…
shwina 428d909
flake8
shwina 944e194
Remove repeated entry in CHANGELOG
shwina 401fb1e
Addressing review comments
shwina 27e3506
style
shwina be68e0f
Remove masked_assign function (replaced by more general setitem)
shwina d479f7c
Remove unused _as_categorical_column
shwina cbf8c6d
Update documentation for loc/iloc
shwina 1396ce4
More doc updates
shwina f866965
Fix a typo
shwina d5919d8
Remove Index loc/iloc as they aren't supposed to exist
shwina 5c90d71
Merge branch 'branch-0.9' into add-setitem
kkraus14 dd4f106
style
shwina a38899a
Merge branch 'add-setitem' of https://github.com/shwina/cudf into add…
shwina 42b7080
Better check for int
shwina c026969
Merge branch 'branch-0.9' of https://github.com/rapidsai/cudf into ad…
shwina 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
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
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
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.
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.