np_array = series.to_numpy()
Here is what the above code is Doing:
1. We’re creating a new variable called series_np_array.
2. We’re using the to_numpy() method to convert the series into a NumPy array.
3. We’re assigning the NumPy array to the series_np_array variable.