Posts by Francisco • 1 point
3 posts
-
0
votes4
answers232
viewsA: Transform a numeric string into a list of python numbers
Well, when using the channel I was not only waiting for help, I was searching from the moment of posting and I was able to solve in the following way: import re lista = ['[11, 14]', '[8, 17, 18, 24,…
-
-2
votes4
answers232
viewsQ: Transform a numeric string into a list of python numbers
I need to turn an entry into a list. The entry has the following form: ['[11, 14]', '[8, 17, 18, 24, 29, 37, 44, 49, 51, 55, 62, 63, 64, 76, 82, 84, 93, 97]'] is read from a file csv. Note that it…
-
0
votes1
answer242
viewsQ: Write to csv file
I have a function that returns a line and this should be inserted in a CSV file. The line has the following structure when returned by the function: ['x' - 'y', 'z', ['a', 'b', 'c', 'd', 'e', 'f']].…