pyvista.Table#
- class Table(*args, **kwargs)[source]#
Wrapper for the
vtkTable
class.Create by passing a 2D NumPy array of shape (
n_rows
byn_columns
) or from a dictionary containing NumPy arrays.Examples
>>> import pyvista as pv >>> import numpy as np >>> arrays = np.random.default_rng().random((100, 3)) >>> table = pv.Table(arrays)
Methods
Table.get
(index)Get an array by its name.
Table.get_data_range
([arr, preference])Get the min and max of a named array.
Return the table items.
Return the table keys.
Table.pop
(name)Pop off an array by the specified name.
Table.save
(*args, **kwargs)Save the table.
Create a Pandas DataFrame from this Table.
Table.update
(data)Set the table data using a dict-like update.
Return the table values.
Attributes
Return the number of columns.
Return the number of columns.
Return the number of rows.
Return the all row arrays.