cancel
Showing results for 
Search instead for 
Did you mean: 

pyq add column to table

planefan
Contributor

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. 

3 REPLIES 3

planefan
Contributor

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? 

planefan
Contributor

For others looking for PyQ documentation. This is the most up to date pdf I was able to find 

planefan
Contributor

ANSWER: table.update('col',col=py list)