series has not attr to_numpy code example Example: AttributeError: 'Series' object has no attribute 'toarray' df[i].values.tolist()