I\'m having difficulty constructing a 3D DataFrame in Pandas. I want something like this
A B C start end start end st
Can't you just use a panel?
import numpy as np import pandas as pd A = ['one', 'two' ,'three'] B = ['start','end'] C = [np.random.randint(10, 99, 2)]*6 df = pd.DataFrame(C,columns=B ) p={} for a in A: p[a]=df panel= pd.Panel(p) print panel['one']