@@ -68,7 +68,7 @@ def caching_exists_in_file(self, sql_query, graph_type):
6868 if not random_id .empty :
6969 result = random_id ['random_id' ].iloc [0 ]
7070 dff = pd .read_csv ("./data_storage/{}/{}.csv" .format (graph_type , result ))
71- print ("{} {} {}" .format (graph_type , "file exists" , result ))
71+ # print("{} {} {}".format(graph_type, "file exists", result))
7272 return True , True , dff
7373 return False , True , None
7474
@@ -100,11 +100,11 @@ def store_data_in_dict(self, df, sql_query, graph_type):
100100 def caching_data_manager (self , df , sql_query , graph_type , calculated_funct = None , details_dict = None ):
101101 status_file , file_exist , dff = self .caching_exists_in_file (sql_query , graph_type )
102102 if status_file :
103- print ("{}/{}" .format (graph_type , "exist in file" ))
103+ # print("{}/{}".format(graph_type, "exist in file"))
104104
105105 return dff
106106 else :
107- print ("{}/{}" .format (graph_type , "don't exists" ))
107+ # print("{}/{}".format(graph_type, "don't exists"))
108108 random_str = self .random_string_generator ()
109109 dict_bkp = self .creating_filtered_backup_file (sql_query , random_str , graph_type )
110110 dff = psql .sqldf (sql_query , locals ())
@@ -139,7 +139,7 @@ def find(self, df, y_variable, y_variable_predict, mode, param):
139139 user_id = user_id ['id' ].iloc [0 ]
140140 self .user_id = user_id
141141 except Exception as e :
142- print ("inside user track" )
142+ # print("inside user track" )
143143 user_id_val = self .random_string_generator ()
144144 user_id_csv = pd .DataFrame (data = {"id" : [user_id_val ]})
145145 user_id_csv .to_csv ("data_storage/user/user_id.csv" , index = False )
0 commit comments