Created
February 27, 2014 22:33
-
-
Save cigrainger/9261085 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| f = open('/Users/cigrainger/Documents/spillovers/tech_proximity2/orbis_patents_titles.csv','r') | |
| f2 = open('/Users/cigrainger/Documents/spillovers/tech_proximity2/patenttitles.csv','w') | |
| f2.truncate() | |
| for line in f: | |
| y = line.split(',',1) | |
| if len(y)==2: | |
| c = y[1].replace(',','') | |
| f2.write(y[0]+','+c) | |
| f.close() | |
| f2.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment