I am pretty new to Python, I have a list of lists, which when printed this is the following output, lets call it list1:
[['2012-09-01', '25,922'], ['2013-09-01', '41,733'], ['2014-09-01', '37,037'], ['2015-09-01', '39,510'], ['2016-09-01', '53,394']]
Then I am converting to a numpy array, just like in this thread List of lists into numpy array
and when I do:
print(numpy.array(list1))
I get the following output:
[['2012-09-01' '25,922']
['2013-09-01' '41,733']
['2014-09-01' '37,037']
['2015-09-01' '39,510']
['2016-09-01' '53,394']]
I was expecting the same output as the previous one, just like in the other thread. What stupid thing am I doing here?
When I print both types of the lists I get the following output:
<class 'list'>
<class 'numpy.ndarray'>
So its seems to be doing the right thing.
Thank you!