0

Is it possible to append to a numpy array without loading it into RAM? I am trying to create a large numpy array that is bigger than my RAM on google colab, and then using memmap to read parts of it at a time. I have the second part figured out but I have no way of creating hte large numpy array in the first place.

3
  • Use numpy.memmap: numpy.org/doc/stable/reference/generated/numpy.memmap.html Commented Sep 9, 2020 at 0:54
  • How? Is there an example you could point me to? Commented Sep 9, 2020 at 2:01
  • The docs I linked have an example of how to create a numpy.memmap array. They work pretty much like a normal numpy.ndarray. You need to be more specific. Commented Sep 9, 2020 at 14:41

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.