I'm trying to round a timestamp column in PySpark, I can't use the date_trunc function because it only round down the value..
For example:
Real Value Expected Round Up/Down
2020-11-03 18:25:04 -> 2020-11-03 18:25:00
2020-11-03 18:21:44 -> 2020-11-03 18:22:00
I would like not to use pandas to do the solution..