Answers for "np series to array"

1

series to numpy array

np_array = series.to_numpy()
Posted by: Guest on May-20-2021
1

get array from series pandas

>>> a = pd.Series([1, 2, 3])
>>> a.values
array([1, 2, 3])
Posted by: Guest on July-08-2020

Python Answers by Framework

Browse Popular Code Answers by Language