Created
September 26, 2019 21:31
-
-
Save marcosan93/1aaedd7d907c41c7615a77fc4d66f575 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Converting the data to a logarithmic scale | |
| bc_log = pd.DataFrame(np.log(bc.Close)) | |
| # Differencing the log values | |
| log_diff = bc_log.diff().dropna() | |
| # Using the Dickey-Fuller test to check for stationarity | |
| results = adfuller(log_diff.Close) | |
| print(f"P-value: {results[1]}") |
what's the adfuller? I try to use it but kept giving me error and I couldn't find out why
from statsmodels.tsa.stattools import adfuller
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what's the adfuller? I try to use it but kept giving me error and I couldn't find out why