pyspark.sql.functions.
minute
Extract the minutes of a given date as integer.
New in version 1.5.0.
Examples
>>> df = spark.createDataFrame([('2015-04-08 13:08:15',)], ['ts']) >>> df.select(minute('ts').alias('minute')).collect() [Row(minute=8)]
previous
pyspark.sql.functions.min
next
pyspark.sql.functions.monotonically_increasing_id