Skip to content

Commit

Permalink
Update MiscDemo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
LearningJournal authored Mar 27, 2021
1 parent d464494 commit 049167c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 12-MiscDemo/MiscDemo.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
.withColumn("dob", expr("to_date(concat(day,'/',month,'/',year), 'd/M/y')")) \
.drop("day", "month", "year") \
.dropDuplicates(["name", "dob"]) \
.sort(expr("dob desc"))
# .sort(expr("dob desc")) This doesn't seem to be working
.sort(col("dob").desc())

final_df.show()

0 comments on commit 049167c

Please sign in to comment.