Commit 2d889fd4 authored by aakash.bedi's avatar aakash.bedi

Uncomment to_sql command in parameter optimizer file

parent a2a8f418
Pipeline #33285 failed with stage
......@@ -241,8 +241,8 @@ class ParameterOptimization(object):
df_updated_recommendation.to_csv("{}.csv".format(OUTPUT_DATA["tables"]["lookup"]), index=False)
full_profile_data = "conf/profile.csv"
df_full_profile = pd.read_csv(full_profile_data)
# df_updated_recommendation.to_sql(OUTPUT_DATA["tables"]["lookup"], engine, if_exists="replace")
# df_full_profile.to_sql(OUTPUT_DATA["tables"]["profile"], engine, if_exists="replace")
df_updated_recommendation.to_sql(OUTPUT_DATA["tables"]["lookup"], engine, if_exists="replace")
df_full_profile.to_sql(OUTPUT_DATA["tables"]["profile"], engine, if_exists="replace")
def find_optimum(self, data_dict, add_predict, controllable=False):
logger.info("Finding optimum data for the last received live data.")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment