how to convert a pandas series to array code example Example: get array from series pandas >>> a = pd.Series([1, 2, 3]) >>> a.values array([1, 2, 3])