pyspark.sql.functions.
days
Partition transform function: A transform for timestamps and dates to partition data into days.
New in version 3.1.0.
Notes
This function can be used only in combination with partitionedBy() method of the DataFrameWriterV2.
partitionedBy()
Examples
>>> df.writeTo("catalog.db.table").partitionedBy( ... days("ts") ... ).createOrReplace()