INNER CODE UNIT · Python

_cleaned_summary_rows

HHammond/PrettyPandas · prettypandas/summarizer.py:155

    def _cleaned_summary_rows(self):
        return list(self._cleaned_aggregates(self.summary_rows))

    @property
    def _cleaned_summary_cols(self):
        return list(self._cleaned_aggregates(self.summary_cols))

    def _apply_summaries(self):
        """Add all summary rows and columns."""

        def as_frame(r):
            if isinstance(r, pd.Series):
                return r.to_frame()
            else:
                return r

        df = self.data

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…