Skip to content

Commit

Permalink
remove print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
vsian committed Oct 24, 2024
1 parent abff520 commit ee92975
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions python/infinity_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,15 +661,13 @@ def to_df(self):

for res in self.output_res:
for k in res:
print(res[k])
# print(res[k])
if k not in df_dict:
df_dict[k] = ()
tup = df_dict[k]
if res[k].isdigit() or is_float(res[k]):
print('number')
new_tup = tup + (eval(res[k]),)
elif is_list(res[k]):
print('list')
new_tup = tup + (ast.literal_eval(res[k]),)
elif is_date(res[k]):
new_tup = tup + (res[k],)
Expand All @@ -678,11 +676,9 @@ def to_df(self):
elif is_datetime(res[k]):
new_tup = tup + (res[k],)
elif is_sparse(res[k]): # sparse vector
print('sparse')
sparse_vec = str2sparse(res[k])
new_tup = tup + (sparse_vec,)
else:
print('str')
if res[k].lower() == 'true':
res[k] = True
elif res[k].lower() == 'false':
Expand Down

0 comments on commit ee92975

Please sign in to comment.