pyvista.DataSetAttributes.keys#
- DataSetAttributes.keys() list[str] [source]#
Return the names of the arrays as a list.
- Returns:
list
List of keys.
Examples
>>> 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']