Skip to content

Commit 1cd4304

Browse files
authored
FIX deprecation warning when detecting a date in pandas 4.0 (skrub-data#2035)
1 parent bc2c689 commit 1cd4304

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

skrub/_datetime_encoder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def _is_date(col):
4848
@_is_date.specialize("pandas", argument_type="Column")
4949
def _is_date_pandas(col):
5050
col = sbd.drop_nulls(col)
51-
return (col.dt.date == col).all()
51+
return (col.dt.normalize() == col).all()
5252

5353

5454
@_is_date.specialize("polars", argument_type="Column")

0 commit comments

Comments
 (0)