Skip to content

Instantly share code, notes, and snippets.

@matiasherranz
Last active January 12, 2021 15:34
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 matiasherranz/759a800fcdfdeae112d832877044079e to your computer and use it in GitHub Desktop.
Save matiasherranz/759a800fcdfdeae112d832877044079e to your computer and use it in GitHub Desktop.
import os
meses = [
'enero','febrero','marzo','abril','mayo', 'junio', 'julio',
'agosto', 'septiembre', 'octubre', 'noviembre', 'diciembre',
]
resultados = []
for mes in meses:
read_file = pd.read_excel(os.path.join(path, mes, + ".xlsx"), "Hoja1")
csv_path = os.path.join(path, mes, ".csv")
read_file.to_csv(csv_path)
resultados.append(pd.read_csv(csv_path))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment