Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import numpy as np
  2. x=np.repeat("var",100)
  3. y=np.arange(1,101,1)
  4. names=[a+str(b) for a,b in zip(x,y)]
  5.  
  6. for name in names:
  7. globals()[names] =Series(np.random.randn(100))
  8.  
  9.  
  10. >>Traceback (most recent call last):
  11. File "<stdin>", line 2, in <module>
  12. TypeError: unhashable type: 'numpy.ndarray'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement