I am trying to convert a dataframe to xarray. The head is like this:
z   Class    DA       x          y          iline      xline      idz                                                      
2     651   289  1455.0        2.0        0.62239  2345322.0  76720.0
            290  1460.0        0.0        0.46037  2345322.0  76720.0
            291  1465.0        4.0        0.41280  2345322.0  76720.0
            292  1470.0        0.0        0.39540  2345322.0  76720.0
            293  1475.0        2.0        0.61809  2345322.0  76720.0
when I use xr.DataSet.from_dataframe, or df.to_xarray, I got the following error message:
cannot handle a non-unique multi-index!
Anybody know what is going on here?
 
     
     
     
     
    