Your issue is that DuckDB requires arrays to be passed in a proper format when updating. Instead of directly assigning a NumPy array, you need to convert it to a list using .tolist().
.tolist().