I have a pyspark dataframe (df) which has a time_stamp column and a message column (data type str) as shown below:
Example dataframe