Closed
Description
For example in seaborn we see this:
# Now actually update the matplotlib objects to do the conversion we want
grouped = self.plot_data[var].groupby(self.converters[var], sort=False)
for converter, seed_data in grouped:
if self.var_types[var] == "categorical":
if self._var_ordered[var]:
order = self.var_levels[var]
else:
order = None
seed_data = categorical_order(seed_data, order)
converter.update_units(seed_data)
Currently, both pandas and polars allow it: if you iterate of a GroupBy
object, you get a tuple where the first element is the key and the second is the subset of the DataFrame corresponding to that key
Metadata
Metadata
Assignees
Labels
No labels