Last active
January 12, 2021 15:34
-
-
Save matiasherranz/759a800fcdfdeae112d832877044079e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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