Overwriting at an index, vs duplication

I am using the from_pandas function to write new data to an existing array. I am attempting to overwrite data at existing indices, but instead the array is growing by the number of items that I am trying to overwrite (ex: array has 6 elements in it, I want to overwrite at index 0, 1, and 2 but now the array is 9 elements long). Does this have to do with allow_duplicates defaulting to True, or should I be looking at variable length attributes? how do I prevent this from happening and instead overwrite the contents at these indices?


EDIT: I remade the array with allows_duplicates=False and then when I wrote to it, the write operation overwrote the value … so answered my own question

1 Like