Skip to content

Commit f808aeb

Browse files
committed
fix(predicates): mask cudf None propagation safely
1 parent 2fa2af7 commit f808aeb

File tree

1 file changed

+2
-1
lines changed
  • graphistry/compute/predicates

1 file changed

+2
-1
lines changed

graphistry/compute/predicates/str.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ def __call__(self, s: SeriesT) -> SeriesT:
179179
if has_na:
180180
# Convert to object dtype to preserve None values
181181
result_pd = result.to_pandas().astype('object')
182-
result_pd[s.to_pandas().isna()] = None
182+
na_mask = s.to_pandas().isna()
183+
result_pd.loc[na_mask] = None
183184
result = cudf.from_pandas(result_pd)
184185
else:
185186
if not self.case:

0 commit comments

Comments
 (0)