DataSetAttributes.keys#
- DataSetAttributes.keys() list[str][source]#
Return the names of the arrays as a list.
- Returns:
listList of keys.
Examples#
Download Python source code | Download Jupyter notebook
>>> import pyvista as pv
>>> mesh = pv.Sphere()
>>> mesh.clear_data()
>>> mesh.point_data['data0'] = [0] * mesh.n_points
>>> mesh.point_data['data1'] = range(mesh.n_points)
>>> mesh.point_data.keys()
['data0', 'data1']