Search code examples
pythonscientific-computingpytables

How to determine size (in bytes) of a PyTables array?


How can I determine the size (in bytes) of a PyTables Array?


Solution

  • It turns out that since all PyTables arrays are simply Numpy arrays underneath, you can do the following:

    MyPytableFile.root.myPytableArray[:].nbytes