title: How can I get an array of alternating values in python?
body: <p>Simple question here:  </p>
  
  <p>I'm trying to get an array that alternates values (1, -1, 1, -1.....) for a given length.  np.repeat just gives me (1, 1, 1, 1,-1, -1,-1, -1).  Thoughts?</p>