0

In my search of a test to check whether two numpy arrays use the same underlying memory, I stumbled across the data attribute of an array. It behaves really weirdly (a.data is a.data returns False), and the documentation says nothing but:

Python buffer object pointing to the start of the array’s data.

So what exactly is the data object of a numpy array and what is it used for?

1
  • Most numpy users don't use it (directly). Commented Apr 8, 2020 at 15:03

1 Answer 1

1

The following discussion may be able to shed some more light on your question: What is a Python buffer object pointing to the start of the array’s data?

Sign up to request clarification or add additional context in comments.

1 Comment

thanks for finding that. Saves me from rewriting my answer.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.