I am trying to convert a list of tuples and strings into a list of tuples as follows:
I have:
[In]: print(lista)
[Out]: [
('Enero', "('90.0', '229.0', '0.264', '0.672')"),
('Febrero', "('76.0', '262.0', '0.247', '0.821'')"),
('Marzo', "('95.0', '133.0', '0.279', '0.390')"),
]
And I am trying to get:
[In]: print(lista)
[Out]: [
('Enero', '90.0', '229.0', '0.264', '0.672'),
('Febrero', '76.0', '262.0', '0.247', '0.821'),
('Marzo', '95.0', '133.0', '0.279', '0.390'),
]
Any idea how to remove the (
and )
?