Advertisement
Fhernd

manipular-datos-3d.py

Jan 28th, 2018
926
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. import pandas as pd
  2. import numpy as np
  3.  
  4. datos = {'num_aleatorios1': pd.DataFrame(np.random.randn(3, 3)),
  5.          'num_aleatorios2': pd.DataFrame(np.random.randn(3, 2))}
  6.  
  7. # Creación Panel:
  8. panel = pd.Panel(datos)
  9.  
  10. # Acceso a un DataFrame:
  11. print(panel['num_aleatorios1'])
  12. print(panel['num_aleatorios2'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement