(self, dropna=True, split_every=False, numeric_only=False)
| 3678 | |
| 3679 | @derived_from(pd.DataFrame) |
| 3680 | def mode(self, dropna=True, split_every=False, numeric_only=False): |
| 3681 | modes = [] |
| 3682 | for _, col in self.items(): |
| 3683 | if numeric_only and not pd.api.types.is_numeric_dtype(col.dtype): |
| 3684 | continue |
| 3685 | modes.append(col.mode(dropna=dropna, split_every=split_every)) |
| 3686 | return concat(modes, axis=1) |
| 3687 | |
| 3688 | @derived_from(pd.DataFrame) |
| 3689 | def add_prefix(self, prefix): |