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 ","[email protected] "
"BarryD ","Barry","Dempsy ","[email protected]"
"OrlaF","Orla ","Farrel ","[email protected] "
"SethB ","Seth ","Black ","[email protected] "
"KateW ","Kate ","White ","[email protected] "