How to split a list in a column into two column in a dataframe using python? For example:
row | column_A
==================================
1 |[('Ahli', 'NNP'), |
| ('paleontologi', 'NNP'), |
| ('Thomas', 'NNP'), |
| ('dan', 'CC'), |
| ('timnya', 'RB'), |
| ('.', 'Z')], |
2 |[('fosil', 'NN'), |
| ('mamalia', 'NN'), |
| ('yang', 'SC'), |
| ('menghuni', 'VB'), |
| ('Antartika', 'NNP')] |
I want to get only the secord string from the list:
row | column_A | postag
=======================================
1 |[('Ahli', 'NNP'), |[('NNP'),
| ('paleontologi', 'NNP'), | (NNP),
| ('Thomas', 'NNP'), | (NNP),
| ('dan', 'CC'), | (CC),
| ('timnya', 'RB'), | (RB),
| ('.', 'Z')], | (Z)],
2 |[('fosil', 'NN'), |[('NN'),
| ('mamalia', 'NN'), | ('NN'),
| ('yang', 'SC'), | ('SC),
| ('menghuni', 'VB'), | ('VB'),
| ('Antartika', 'NNP')] | ('NNP)]