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