Skip to content

Instantly share code, notes, and snippets.

@zoq

zoq/data-norm.py Secret

Created May 9, 2021 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoq/676b9f760cd5ab4e1aa49640f7d10bf5 to your computer and use it in GitHub Desktop.
Save zoq/676b9f760cd5ab4e1aa49640f7d10bf5 to your computer and use it in GitHub Desktop.
data-norm.py
with open('test.csv') as f:
c = f.readlines()
with open('test-norm.csv', 'w') as n:
for line in c:
line = line.split(',')
date = line[0].replace('-', '')
n.write(date + ',' + line[1] + ',' + line[2] + ',' + line[3] + ',' + line[4])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment