Let's imagine we have:
test = [['word.II', 123, 234],
['word.IV', 321, 123],
['word.XX', 345, 345],
['word.XIV', 345, 432]
]
How can I split the first element in the test so that the result would be:
test = [['word', 'II', 123, 234],
['word', 'IV', 321, 123],
['word', 'XX', 345, 345],
['word', 'XIV', 345, 432]
]
Among other things I've tried:
test = [[row[0].split('.'), row[1], row[2]] for row in test],
but that results in:
[['word', 'II'], 123, 234]
[['word', 'IV'], 321, 123]
[['word', 'XX'], 345, 345]
[['word', 'XIV'], 345, 432]