aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmreddy2106 <[email protected]>2021-12-02 13:31:06 -0500
committerjmreddy2106 <[email protected]>2021-12-02 13:31:06 -0500
commitea7e6a09080f7942ed72b363aeae0184ff3c9802 (patch)
treef67be813bc02953f84777dc40e8c4184a44eb484
parent80cf1b3f9228a7e08b127275bc46a0727fa245eb (diff)
downloadtemp_pred_arima-ea7e6a09080f7942ed72b363aeae0184ff3c9802.tar.xz
temp_pred_arima-ea7e6a09080f7942ed72b363aeae0184ff3c9802.zip
time series model
-rw-r--r--.vscode/settings.json3
-rw-r--r--dashboard/app.py2
-rw-r--r--dashboard/time_serie_model.py7
3 files changed, 11 insertions, 1 deletions
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..9f26dfc
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,3 @@
+{
+ "python.pythonPath": "C:\\Users\\Jagan\\AppData\\Local\\Programs\\Python\\Python38\\python.exe"
+} \ No newline at end of file
diff --git a/dashboard/app.py b/dashboard/app.py
index 4732794..3380dfa 100644
--- a/dashboard/app.py
+++ b/dashboard/app.py
@@ -19,7 +19,7 @@ def get_list_of_dict(keys, list_of_tuples):
return list_of_dict
def get_cities_list():
- conn = sql.connect("./database_files/pythonproject.db")
+ conn = sql.connect("../database_files/pythonproject.db")
sql_statement = 'SELECT DISTINCT(City_Name) as City_Name, Lat, Long FROM City_table join Loc_Table on City_Table.City_Id = Loc_table.City_Id'
df=pd.read_sql_query(sql_statement, conn).to_records(index=False)
return df
diff --git a/dashboard/time_serie_model.py b/dashboard/time_serie_model.py
new file mode 100644
index 0000000..7db8505
--- /dev/null
+++ b/dashboard/time_serie_model.py
@@ -0,0 +1,7 @@
+import numpy as np
+import pandas as pd
+import matplotlib.pyplot as plt
+import seaborn as sns
+from statsmodels.tsa.arima_model import ARIMA
+
+