Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- import openpyxl
- # Definición diccionario:
- diccionario = {'pares': [0, 2, 4, 6], 'impares': [1, 3, 5, 7]}
- # Creación DataFrame:
- df_numeros = pd.DataFrame(diccionario)
- # Guarda datos en XLSX:
- df_numeros.to_excel('numeros.xlsx')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement