Skip to content

Commit

Permalink
Update python/cudf/cudf/core/column/lists.py
Browse files Browse the repository at this point in the history
Co-authored-by: Bradley Dice <bdice@bradleydice.com>
  • Loading branch information
shwina and bdice committed Apr 1, 2022
1 parent 01942e6 commit 2cb1df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cudf/cudf/core/column/lists.py
Expand Up @@ -381,7 +381,7 @@ def get(
"""
out = extract_element(self._column, index)

if not (default is None or default is cudf.NA):
if default not in {None, cudf.NA}:
# determine rows for which `index` is out-of-bounds
lengths = count_elements(self._column)
out_of_bounds_indexes = (-index > lengths) | (index >= lengths)
Expand Down

0 comments on commit 2cb1df3

Please sign in to comment.