How can I filter a dataframe by the hour of a date column?
let df = df.lazy().select([
col("value").filter(
col("date").dt().hour().gt(7).lt(20)
).alias("hours").sum(),
]).collect()?;
Whith that I get an Error
Error: Invalid operation operation not supported on dtype Date