Advertisement
Guest User

Untitled

a guest
Sep 20th, 2014
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. In [2]: a = pd.Series([1,2,3,4,'.'])
  2.  
  3. In [3]: a
  4. Out[3]:
  5. 0 1
  6. 1 2
  7. 2 3
  8. 3 4
  9. 4 .
  10. dtype: object
  11.  
  12. In [8]: a.astype('float64', raise_on_error = False)
  13. Out[8]:
  14. 0 1
  15. 1 2
  16. 2 3
  17. 3 4
  18. 4 .
  19. dtype: object
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement