Created
January 28, 2018 21:53
-
-
Save Fhernd/f1f8cd90344a09850104402f236e77ea to your computer and use it in GitHub Desktop.
Manipular una estructura de datos de tres dimensiones (3D) en Python.
This file contains 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 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