Skip to content

Instantly share code, notes, and snippets.

View wh1t3h47's full-sized avatar
:octocat:
Escape the matrix!

Antônio Martos Harres wh1t3h47

:octocat:
Escape the matrix!
View GitHub Profile
@wh1t3h47
wh1t3h47 / gist:a1571d4ea96f37713e036a3b02509f47
Last active October 2, 2024 04:05
Convert all excel in ./ to csv
from os import listdir
import pandas as pd
for f in listdir():
if f.endswith('xlsx'):
df = pd.DataFrame(pd.read_excel(f))
csv_f = f[:-4:] + 'csv'
df.to_csv(csv_f, index=None, header=True)
continue