L is a list of data frames with multiple indices in rows.
pd.concat(L,axis=1)
I get the following error (from the Categorical constructor in categorical.py ):
TypeError: "values" is not ordered, explicitly specify the order of the categories by passing the category argument.
It clearly has to do with the values ββin my data framework, as I can get it to work if I somehow restrict the data.
eg. all these works
a=pd.concat(L[0:6],axis=1) b=pd.concat(L[6:11],axis=1) c=pd.concat(L[3:9],axis=1)
but
d=pd.concat(L[0:11],axis=1)
not executed.
pd.concat([x.iloc[0:1000,:] for x in L[0:11]],axis=1)
also works. I went through the edges in which it broke, and for life I can not see anything that could be offensive in these ranks. Anyone have any ideas on what I should look for?
source share