Skip to content

Commit

Permalink
Update python/cudf/cudf/_lib/datetime.pyx
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Roeschke <[email protected]>
  • Loading branch information
Matt711 and mroeschke authored Nov 8, 2024
1 parent 1b6e2af commit 86f201d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/cudf/cudf/_lib/datetime.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,9 @@ cdef libcudf_datetime.rounding_frequency _get_rounding_frequency(object freq):
"ns": RoundingFrequency.NANOSECOND,
}
if freq in rounding_fequency_map:
freq_val = rounding_fequency_map[freq]
return rounding_fequency_map[freq]
else:
raise ValueError(f"Invalid resolution: '{freq}'")
return freq_val


@acquire_spill_lock()
Expand Down

0 comments on commit 86f201d

Please sign in to comment.