[python] How do I convert a pandas Series or index to a Numpy array?