2
I have an array that looks like this
training_set = [['03/11/2017' '16,94']
['01/11/2017' '16,90']
['31/10/2017' '16,77']
...
However, I cannot manipulate the numbers because they are in the form of string. How do I clean the data and leave it like this
training_set = [['03/11/2017' 16,94]
['01/11/2017' 16,90]
['31/10/2017' 16,77]
This is the "quick and easy" way. It is good for those who are learning, etc - for a system that is going to be internationalized, the correct is to use locales - it is detailed in the answer to this question: https://answall.com/questions/221876/como-usar-v%C3%Guladra-in-python-time-in-stitch/222098#222098
– jsbueno
This method using replace apparently does not work for arrays, running only for loose numbers. I received error ('numpy.ndarray' Object has in attribute 'replace'')
– GabrielGomes