diff --git a/python/cudf/cudf/_lib/reduce.pyx b/python/cudf/cudf/_lib/reduce.pyx index 558761248fa..ab53a242db2 100644 --- a/python/cudf/cudf/_lib/reduce.pyx +++ b/python/cudf/cudf/_lib/reduce.pyx @@ -100,7 +100,8 @@ def scan(scan_op, Column incol, inclusive, **kwargs): cdef unique_ptr[column] c_result cdef Aggregation cython_agg = make_aggregation(scan_op, kwargs) - cdef scan_type c_inclusive = scan_type.INCLUSIVE if inclusive else scan_type.EXCLUSIVE + cdef scan_type c_inclusive = \ + scan_type.INCLUSIVE if inclusive else scan_type.EXCLUSIVE with nogil: c_result = move(cpp_scan(