Skip to content

Instantly share code, notes, and snippets.

@MayumyCH
Last active October 15, 2021 19:06
Show Gist options
  • Save MayumyCH/ac79aab65474969e3e2dce9b30fc6dd9 to your computer and use it in GitHub Desktop.
Save MayumyCH/ac79aab65474969e3e2dce9b30fc6dd9 to your computer and use it in GitHub Desktop.
UTIL PYTHON

UTIL PYTHON

En Python tenemos 4 estructuras de datos básicas

estructuras de datos básicas python

@MayumyCH
Copy link
Author

Archivo

Leer contenido de una carpeta

import os
contenido = os.listdir('ruta')
contenido

import pandas as pd
df = pd.DataFrame()
df["name_file"] = contenido

# Exportando a un excel la data
df.to_excel('data_mayumy.xlsx', index=False)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment