Search code examples
pythonstringnumpytype-conversioncomputer-science

numpy.ndarray object's name only converted to a string


If I wish to get the name of a numpy.ndarray converted to a string (but not the content of the numpy.ndarray, just the name only), how do I do that?

I tried str(npndarrayName) and npndarrayName.tostring() but both are converting the content and not the name itself only.


Solution

  • I am not sure if I fully understood what you're asking, but you can check this link because I think they had the same question as you. I hope that it will solve your problem.