logo
  • Getting Started
  • User Guide
  • Examples
  • API Reference
  • Extras

API Reference

  • Core API
    • DataObject
    • Data Sets
    • Point Sets
      • pyvista.PointSet
      • pyvista.PolyData
        • add_field_array
        • add_field_data
        • boolean_add
        • boolean_cut
        • boolean_difference
        • boolean_intersection
        • boolean_union
        • cast_to_pointset
        • cast_to_unstructured_grid
        • cell_bounds
        • cell_centers
        • cell_data_to_point_data
        • cell_n_points
        • cell_points
        • cell_type
        • center_of_mass
        • clean
        • clear_arrays
        • clear_cell_arrays
        • clear_cell_data
        • clear_data
        • clear_field_arrays
        • clear_field_data
        • clear_point_arrays
        • clear_point_data
        • clear_textures
        • clip
        • clip_box
        • clip_closed_surface
        • clip_scalar
        • clip_surface
        • collision
        • compute_arc_length
        • compute_cell_quality
        • compute_cell_sizes
        • compute_derivative
        • compute_implicit_distance
        • compute_normals
        • connectivity
        • contour
        • copy
        • copy_attributes
        • copy_meta_from
        • copy_structure
        • ctp
        • curvature
        • decimate
        • decimate_boundary
        • decimate_pro
        • deep_copy
        • delaunay_2d
        • delaunay_3d
        • edge_mask
        • elevation
        • extract_all_edges
        • extract_cells
        • extract_feature_edges
        • extract_geometry
        • extract_largest
        • extract_points
        • extract_surface
        • extrude
        • extrude_rotate
        • fill_holes
        • find_cells_along_line
        • find_cells_within_bounds
        • find_closest_cell
        • find_closest_point
        • find_containing_cell
        • flip_normal
        • flip_normals
        • flip_x
        • flip_y
        • flip_z
        • geodesic
        • geodesic_distance
        • get_array
        • get_array_association
        • get_data_range
        • glyph
        • head
        • interpolate
        • intersection
        • merge
        • multi_ray_trace
        • outline
        • outline_corners
        • overwrite
        • plot
        • plot_boundaries
        • plot_curvature
        • plot_normals
        • plot_over_circular_arc
        • plot_over_circular_arc_normal
        • plot_over_line
        • point_data_to_cell_data
        • points_to_double
        • probe
        • project_points_to_plane
        • ptc
        • ray_trace
        • reconstruct_surface
        • reflect
        • remove_cells
        • remove_points
        • rename_array
        • ribbon
        • rotate_vector
        • rotate_x
        • rotate_y
        • rotate_z
        • sample
        • sample_over_circular_arc
        • sample_over_circular_arc_normal
        • sample_over_line
        • sample_over_multiple_lines
        • save
        • scale
        • select_enclosed_points
        • set_active_scalars
        • set_active_tensors
        • set_active_vectors
        • shallow_copy
        • shrink
        • slice
        • slice_along_axis
        • slice_along_line
        • slice_orthogonal
        • smooth
        • split_bodies
        • streamlines
        • streamlines_evenly_spaced_2D
        • streamlines_from_source
        • strip
        • subdivide
        • subdivide_adaptive
        • surface_indices
        • tessellate
        • texture_map_to_plane
        • texture_map_to_sphere
        • threshold
        • threshold_percent
        • transform
        • translate
        • triangulate
        • tube
        • warp_by_scalar
        • warp_by_vector
        • active_normals
        • active_scalars
        • active_scalars_info
        • active_scalars_name
        • active_t_coords
        • active_tensors
        • active_tensors_info
        • active_tensors_name
        • active_vectors
        • active_vectors_info
        • active_vectors_name
        • actual_memory_size
        • area
        • array_names
        • arrows
        • bounds
        • cell_arrays
        • cell_data
        • cell_normals
        • center
        • extent
        • face_normals
        • faces
        • field_arrays
        • field_data
        • is_all_triangles
        • is_manifold
        • length
        • lines
        • memory_address
        • n_arrays
        • n_cells
        • n_faces
        • n_lines
        • n_open_edges
        • n_points
        • n_verts
        • number_of_cells
        • number_of_faces
        • number_of_points
        • obbTree
        • point_arrays
        • point_data
        • point_normals
        • points
        • t_coords
        • textures
        • vectors
        • verts
        • volume
      • pyvista.UnstructuredGrid
      • pyvista.StructuredGrid
      • pyvista.ExplicitStructuredGrid
    • Gridded Data
    • Composite Datasets
    • Filters
    • Cameras
    • Lights
    • Helpers
  • Plotting
  • Utilities
  • Readers
  • Examples

head#

PolyData.head(display=True, html: Optional[bool] = None)#

Return the header stats of this dataset.

If in IPython, this will be formatted to HTML. Otherwise returns a console friendly string.

Parameters
displaybool, optional

Display this header in iPython.

htmlbool, optional

Generate the output as HTML.

Returns
str

Header statistics.

© Copyright 2017-2022, The PyVista Developers.

Created using Sphinx 4.5.0.