I have a pyspark dataframe and I want to delete everything after the . and I want to delete the .
furthermore, I want to place zeroes in front of the numbers so every number has a length of 4.
As is:
|270.0 |
|749.5 |
|460.0 |
|90.0 |
|670.0 |
|656.6666666666666|
|1210.0 |
TO BE:
|0270|
|0749|
|0460|
|0090|
|0670|
|0656|
|1210|
Kind regards,
Wokter