2021.06.27 09:16 PM
Greetings all,
Trying to add a numpy array (as a column) to a table in pyq. Pyq documentation doesn't seem to have an answer for me.
Any help greatly appreciated.
2021.06.28 03:00 PM
so play along with me:
1) have tried table[`col] or table.col assignment -- no go
2) have tried "update" which naturally won't work given that im not trying to create a new col from data existing within the table itself
3) have tried to upsert the column as its own table into the existing table (it should work given they're of the same length) but thusfar no go.
what's the pyq-onic way to do this?
2021.06.28 03:03 PM
For others looking for PyQ documentation. This is the most up to date pdf I was able to find
2021.06.29 05:57 AM
ANSWER: table.update('col',col=py list)
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.