Skip to content

Error prevents code to run properly #11

@dadepro

Description

@dadepro

The code seems to be broken when transforming estimates to strings for visualization into table. OLSFixed.py line 213:

        params_data = lzip(["%#6.5f" % float(params[i]) for i in exog_len],
                           ["%#6.5f" % float(std_err[i]) for i in exog_len],
                           ["%#6.4f" % float(tstat[i]) for i in exog_len],
                           ["%#6.4f" % float(prob_stat[i]) for i in exog_len],
                           ["%#6.4f" % float(conf_int[0][i]) for i in exog_len],
                           ["%#6.4f" % float(conf_int[1][i]) for i in exog_len])

I needed to cast the various parameters to float for the code to work again. I am using Python 3.9.6 on MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions