Skip to content

Commit 049167c

Browse files
Update MiscDemo.py
1 parent d464494 commit 049167c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

12-MiscDemo/MiscDemo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
.withColumn("dob", expr("to_date(concat(day,'/',month,'/',year), 'd/M/y')")) \
3333
.drop("day", "month", "year") \
3434
.dropDuplicates(["name", "dob"]) \
35-
.sort(expr("dob desc"))
35+
# .sort(expr("dob desc")) This doesn't seem to be working
36+
.sort(col("dob").desc())
3637

3738
final_df.show()

0 commit comments

Comments
 (0)