All,
Is it possible to run an rsplit on a whole dataframe without iterating through all columns? I have a CSV file with loads of spaces after most of the fields (Not column specific).
Any help is much appreciated.
Edit: the csv would look like the following and I would like to remove all the spaces on the right of each field (at the time of read_csv would be the best):
"JoeK ","Joe ","Kavanagh ","joe.kavanagh@nomail.com "
"BarryD ","Barry","Dempsy ","bdempsy@nomail.com"
"OrlaF","Orla ","Farrel ","ofjk@nomail.com "
"SethB ","Seth ","Black ","sblack@nomail.com "
"KateW ","Kate ","White ","kw12@nomail.com "