Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created January 28, 2018 21:53
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 Fhernd/f1f8cd90344a09850104402f236e77ea to your computer and use it in GitHub Desktop.
Save Fhernd/f1f8cd90344a09850104402f236e77ea to your computer and use it in GitHub Desktop.
Manipular una estructura de datos de tres dimensiones (3D) en Python.
import pandas as pd
import numpy as np
datos = {'num_aleatorios1': pd.DataFrame(np.random.randn(3, 3)),
'num_aleatorios2': pd.DataFrame(np.random.randn(3, 2))}
# Creación Panel:
panel = pd.Panel(datos)
# Acceso a un DataFrame:
print(panel['num_aleatorios1'])
print(panel['num_aleatorios2'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment