Guest User

Untitled

a guest
Jan 16th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. for (labels, value) in rows:
  2. pass
  3.  
  4. result = np.fromiter(your_generator, dtype=[('labels', '|S10'), ('value', float)])
  5.  
  6. result = np.array([(('a','b','c'), 1.23),(('a','c','d'), 2.34)],
  7. dtype=[('label', ("|S10", 3)), ('value', float)])
  8.  
  9. dtype=[('label',[('A','|S10'),('B','|S10'),('C','|S10')]),('value',float)]
Add Comment
Please, Sign In to add comment