'Series' object has no attribute 'to_numpy' code example
Example 1: AttributeError: 'Series' object has no attribute 'toarray'
df[i].values.tolist()
Example 2: 'Series' object has no attribute 'to_numpy'
import pandas as pd
import numpy as np
s = pd.Series([1.1, 2.3])
a = np.array(s)
print(a) # [1.1 2.3]