Help Writing a Simple Python Script
July 7, 2014 11:13 AM Subscribe
I have thousands of records of variable length from which I need to remove the last four digits. This seems like it should be an easy job for Python, but I keep hitting a wall.
The data is in CSV format, and it can either be rewritten where it lives or become a new file. I have no use for the data with the last four digits of the numbers attached. So, I need to take data lists that look like this "12345671234, 9090901234, 123901234, 6751234" and turn it into "1234567, 909090, 12390, 675". Any thoughts?