def _make_regression_options(trading, exog):
    if ((not trading) and (exog is None)):
        return ''
    reg_spec = 'regression{\n'
    if trading:
        reg_spec += '    variables = (td)\n'
    if (exog is not None):
        var_names = _make_var_names(exog)
        reg_spec += '    user = ({0})\n'.format(var_names)
        reg_spec += '    data = ({0})\n'.format('\n'.join(map(str, exog.values.ravel().tolist())))
    reg_spec += '}\n'
    return reg_spec
def _make_regression_options(trading, exog):
    if ((not trading) and (exog is None)):
        return 
    reg_spec = 'regression{\n'
    if trading:
        reg_spec += '    variables = (td)\n'
    if (exog is not None):
        var_names = _make_var_names(exog)
        reg_spec += '    user = ({0})\n'.format(var_names)
        reg_spec += '    data = ({0})\n'.format('\n'.join(map(str, exog.values.ravel().tolist())))
    reg_spec += '}\n'
    return reg_spec