@staticmethod
def sanitize_nan(lcs):
    """
        .. note:: These methods are meant to be applied to photometric tables
        as well
        """
    lcs = lcs.copy()
    avg_error = lcs.fluxerr.mean(skipna=True)
    lcs.fillna(dict(flux=0.0, fluxerr=avg_error), inplace=True)
    return lcs
