How to rename the date stamp portion of a csv file in python
<p>I have created a script which should remove the date stamp portion from a file. For example, rename the file from existing name_2016-09-13.csv to name.csv. The problem is that the filename changes everyday. So, I need to rename and overwrite the existing file when it gets renamed the next day.</p>

<pre><code>import os
import re

path = "C:\New\Test"
for filename in os.listdir(path):
    if filename.startswith('name_'):
       print filename
       os.rename(filename, filename.translate("0123456789"))
</code></pre>