import numpy as np
import pandas as pd
import seaborn as sns
from fitter import Fitter#, get_common_distributions, get_distributions
from fitter import get_common_distributions
from fitter import get_distributions
from IPython.display import clear_output
import warnings
import pandas as pd
from pandas.core.common import SettingWithCopyWarning
warnings.simplefilter(action="ignore", category=SettingWithCopyWarning)
import time
import subprocess
dataset = pd.read_csv("econ.csv")
for col in dataset.columns:
print(col)
spac = dataset[col].values
f = Fitter(spac, distributions=get_distributions())
f.fit()
f.summary()
f.get_best(method='sumsquare_error')
print("")
#subprocess.call
#result = col.result
#time.sleep(180)