def busday_count_mask_NaT(begindates, enddates, out=None):
 if (out is None):
  out = empty(broadcast(begindates, enddates).shape, dtype=float)
 beginmask = isnat(begindates)
 endmask = isnat(enddates)
 out = busday_count(where(beginmask, _notNaT, begindates), where(endmask, _notNaT, enddates), out=out)
 out[(beginmask | endmask)] = nan
 return out

def busday_count_mask_NaT ( begindates , enddates , out = None ) : if ( out is None ) : out = empty ( broadcast ( begindates , enddates ) . shape , dtype = float ) beginmask = isnat ( begindates ) endmask = isnat ( enddates ) out = busday_count ( where ( beginmask , _notNaT , begindates ) , where ( endmask , _notNaT , enddates ) , out = out ) out [ ( beginmask | endmask ) ] = nan return out
simple of numpy .