Skip to content

Commit 53b9d50

Browse files
bug fix for nlp.py (abhijithneilabraham#33)
* get multiple column names for select queries * modified tests * updated support for custom dataframes * tests for agent updated * updating examples and readme * Update README.md * version update to 0.0.8 * conditional ops improvement * fix for conditional ops * update comments * Update tableqa/nlp.py * Update README.md * bug fix
1 parent b237074 commit 53b9d50

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

tableqa/nlp.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -333,18 +333,13 @@ def get_sql_query(self,df,q):
333333

334334
clause=Clause()
335335
question=""
336-
336+
question=clause.adapt(q)
337337
if flag:
338338
for col in schema["columns"]:
339339
if "summable" in col.keys() and col["name"] in unknown_slots["main_slot"]:
340340
question=clause.adapt(q,inttype=True,summable=True)
341341

342342
break
343-
else:
344-
question=clause.adapt(q)
345-
346-
else:
347-
question=clause.adapt(q)
348343
if question not in "SELECT {} FROM {}":
349344
unknown_slots=unknown_slots['main_slot']
350345
else:

0 commit comments

Comments
 (0)