Created
May 10, 2011 17:14
-
-
Save yoni/964929 to your computer and use it in GitHub Desktop.
numpy array string issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> from numpy import array | |
>>> array([('abc',1,1.0)], dtype=[('name',str),('age',int),('grade',float)]) | |
array([('', 1, 1.0)], | |
dtype=[('name', '|S0'), ('age', '<i8'), ('grade', '<f8')]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment