larray-project / larray

N-dimensional labelled arrays in Python
https://larray.readthedocs.io/
GNU General Public License v3.0
8 stars 6 forks source link

read_xxx functions cannot load an array with non-unique labels in one axis #701

Open alixdamman opened 6 years ago

alixdamman commented 6 years ago

crash occurs at line:

return df.reindex(index=new_index, columns=columns, fill_value=fill_value, **kwargs), labels

in cartesian_product_df. Error is:

Exception: cannot handle a non-unique multi-index!

@gdementen Is this what we want in LArray or not?

gdementen commented 6 years ago

In an ideal world, this is clearly not what we want. We want to be able to load almost any file and at the minimum change the axes afterwards to something more useful. Now, pragmatically, this might be too hard to fix for us to be worth spending time on it. If pandas does not support that I don't see how we could, or do you have an idea how to fix that?

alixdamman commented 6 years ago

No, I don't.