I am trying to figure out a way with the pandas library to take a 3 column csv file and turn it into a 5 column csv file with formatting in place for the last column. I Then need to save the output. I was able to write this in powershell but I cant figure it out in python and I need it to be extraordinary efficient. I am using a 3 column 140 million row file with this. Example of what im trying to do:
Test-data 1234567 123456789
Test-data 1234567 123456789
To ->
Test-data 1234567 123456789 123-45-6789 123/45/6789
Test-data 1234567 1234667890 123-45-6789 123/45/6789
Thanks in advance for any help.