How to get from ["1.1", "2.2", "3.2"] to [1.1, 2.2, 3.2] in numpy?
Take the 2-minute tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Well, if you're reading the data in as a list, just do However, if it's already a numpy array of strings, there's a better way. Use
|
|||
|