-
qpython to select columns from table
This is about qpython code. Let’s say we have a table named “t” with 2 columns “name” and “iq” in kdb:
from qpython import qconnection, qcollection q = qconnection.QConnection(host='localhost', port=5000): q.open() q("t:flip `name`iq!(`Dent`Beeblebrox`Prefect;98 42 126)")
How can we pass the column name and table name through qpython? Thanks.
pseudo code:
q({select x from y}, "iq", "t")
Log in to reply.