If a dataframe is looks like this df = df.withColumn('NUM_COL', lit('Hey$$$ Hey$ T$$')) and when I need to make this string as
Hey$ Hey$ T$. I couldn't find any proper solutions for this. For an instance in IBM datastage there is a way to do this by using Trim(mylink.mystring,".") for remove redundant chars. What would be the best solution for this in PySpark?