def cov_crosssection_0(results, group):
 scale = S_crosssection(results.resid[:, None], group)
 scale = np.squeeze(scale)
 cov = _HCCM1(results, scale)
 return cov

def cov_crosssection_0 ( results , group ) : scale = S_crosssection ( results . resid [ : , None ] , group ) scale = np . squeeze ( scale ) cov = _HCCM1 ( results , scale ) return cov
this one is still wrong .