weldermartins
Honored Contributor

Similar to the result of this code, but to change files.

path = 'k3250.seqy0.company.csv'
 
path1 = path.replace("k3250", "company")
 
print(path1)