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

NameError #3

Open
chrifels opened this issue Sep 9, 2021 · 1 comment
Open

NameError #3

chrifels opened this issue Sep 9, 2021 · 1 comment

Comments

@chrifels
Copy link

chrifels commented Sep 9, 2021

I am quite new in Python ...

When I run your ARMA-Code in Jupyter Notebook, I get an error after block [9] (i.e. acf_vals = acf(first_diff) .....):

NameError Traceback (most recent call last)
in
1 acf_vals = acf(first_diff)
----> 2 plt.bar(range(num_lags), acf_vals[:num_lags])

NameError: name 'num_lags' is not defined

May be you could check it.

Thank you,
Christian

@Cristian1234567890
Copy link

num_lags = 10
acf_vals = acf(first_diff)
plt.bar(range(num_lags), acf_vals[:num_lags])

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

No branches or pull requests

2 participants