def lag_select(data, max_lags=5, ic=None):
 pass

def lag_select ( data , max_lags = 5 , ic = None ) : pass
select number of lags based on a variety of information criteria parameters data : dataframe-like max_lags : int maximum number of lags to evaluate ic : {none .