def _remove_intercept_patsy(terms):
 from patsy.desc import INTERCEPT
 if (INTERCEPT in terms):
  terms.remove(INTERCEPT)
 return terms

def _remove_intercept_patsy ( terms ) : from patsy . desc import INTERCEPT if ( INTERCEPT in terms ) : terms . remove ( INTERCEPT ) return terms
remove intercept from patsy terms .