'Helper for constructing an AssetExists mask from a boolean-coercible
array.'

def build_mask(self, array):

    (ndates, nassets) = array.shape
    return DataFrame(array, index=self.nyse_sessions[(- ndates):], columns=self.ASSET_FINDER_EQUITY_SIDS[:nassets], dtype=bool)
