This file contains 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
import numpy as np | |
import pandas as pd | |
from statsmodels.tsa.stattools import adfuller | |
def ADF_test(df, row_name=None): | |
if df[row_name].isnull().any(): | |
df_test = adfuller(df[row_name].dropna(), autolag='AIC') | |
else: | |
df_test = adfuller(df[row_name], autolag='AIC') |
This file contains 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
from selenium.webdriver import Chrome, ChromeOptions | |
import sys | |
import os | |
import csv | |
import urllib | |
if not os.path.isdir('../data/'): | |
os.makedirs('../data/') |