Skip to content

Instantly share code, notes, and snippets.

@yoni
Created May 10, 2011 17:14
Show Gist options
  • Save yoni/964929 to your computer and use it in GitHub Desktop.
Save yoni/964929 to your computer and use it in GitHub Desktop.
numpy array string issue
>>> 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