Re: How use pattern matching in spark

2022-07-14 Thread Bjørn Jørgensen
Use from datetime import date today = date.today() day = today.strftime("%d/%m/%Y") print(day) to get today's date. cast it to sting testday = str(day) Compare == day == df_date True or False use loc to get row text test_str = test.loc[1][0] String = list in python soo test_str[2] '1' o

How use pattern matching in spark

2022-07-12 Thread Sid
Hi Team, I have a dataset like the below one in .dat file: 13/07/2022abc PWJ PWJABC 513213217ABC GM20 05. 6/20/39 #01000count Now I want to extract the header and tail records which I was able to do it. Now, from the header, I need to extract the date and match it with the current system d