Table.is_empty#
- property Table.is_empty: bool[source]#
Return
Trueif the table has no rows and no columns.Added in version 0.45.
Examples#
Download Python source code | Download Jupyter notebook
>>> import pyvista as pv
>>> import numpy as np
>>> table = pv.Table()
>>> table.is_empty
True
>>> arrays = np.random.default_rng().random((100, 3))
>>> table = pv.Table(arrays)
>>> table.is_empty
False