Skip to content

Instantly share code, notes, and snippets.

@1ambda
Created Dec 21, 2021
Embed
What would you like to do?
df.agg(max("event_time"), min("event_time")).show(truncate=False)
+-----------------------+-----------------------+
|max(event_time) |min(event_time) |
+-----------------------+-----------------------+
|2020-01-31 23:59:58 UTC|2020-01-01 00:00:00 UTC|
+-----------------------+-----------------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment