0.11.2
  • Gallery
  • Tutorial
  • API
  • Site
      • Introduction
      • Release notes
      • Installing
      • Example gallery
      • Tutorial
      • API reference
      • Citing
      • Archive
  • Page
      • seaborn.FacetGrid.facet_data

seaborn.FacetGrid.facet_data¶

FacetGrid.facet_data(self)¶

Generator for name indices and data subsets for each facet.

Yields
(i, j, k), data_ijktuple of ints, DataFrame

The ints provide an index into the {row, col, hue}_names attribute, and the dataframe contains a subset of the full data corresponding to each facet. The generator yields subsets that correspond with the self.axes.flat iterator, or self.axes[i, j] when col_wrap is None.

Back to top

© Copyright 2012-2021, Michael Waskom. Created using Sphinx 3.3.1.