Dec-08-2018, 09:02 AM
Good morning friends,
the whole week trying to do the following:
I have to obtain 16 descriptors of thousands of compounds.
The idea is to create an empty list with rows, each row with the name of a compound and the 16 descriptors about it. I use different programs to obtain these numbers.
I've managed to do it but I have a different output in one of the programs. It gives me a list of numbers and I have to append these numbers to the rows in the general list. Something like this:
output of the program: ['1', '2', '3'...]
original list: [['verapamil', '0.5', '9.2'],['norverapamil', '0.6', '7.3']...]
The question is, how could I append '1' to the row with the 'verapamil', '2' to the row with 'norverapamil' etc?
Thank you very much.
the whole week trying to do the following:
I have to obtain 16 descriptors of thousands of compounds.
The idea is to create an empty list with rows, each row with the name of a compound and the 16 descriptors about it. I use different programs to obtain these numbers.
I've managed to do it but I have a different output in one of the programs. It gives me a list of numbers and I have to append these numbers to the rows in the general list. Something like this:
output of the program: ['1', '2', '3'...]
original list: [['verapamil', '0.5', '9.2'],['norverapamil', '0.6', '7.3']...]
The question is, how could I append '1' to the row with the 'verapamil', '2' to the row with 'norverapamil' etc?
Thank you very much.