def xarray_to_pd_dataframe(dc):
    """
    Converts xarray datacube to long format data dataframe
    :param dc: datacube to convert to dataframe
    :return: df: dataframe to convert
    """
    return dc.to_series().reset_index()