Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] SDK - openbb.econometrics.ols requires dictionary datasets instead of DataFrames #3367

Closed
JerBouma opened this issue Nov 10, 2022 · 0 comments · Fixed by #3379
Closed
Assignees
Labels
bug Fix bug

Comments

@JerBouma
Copy link
Contributor

Datasets need to be loaded directly into a dictionary to work with ols. Otherwise it returns an error, e.g.

datasets = {"longley": openbb.econometrics.load("longley"), "macrodata": openbb.econometrics.load("macrodata")}

It doesn't work if I do the following:

data = openbb.econometrics.load("longley")
openbb.econometrics.ols(["TOTEMP", "GNPDEFL"], data=data)

image

Whereas this does:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fix bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants