(self, dropna=True, split_every=False, numeric_only=False)
| 3668 | |
| 3669 | @derived_from(pd.DataFrame) |
| 3670 | def mode(self, dropna=True, split_every=False, numeric_only=False): |
| 3671 | modes = [] |
| 3672 | for _, col in self.items(): |
| 3673 | if numeric_only and not pd.api.types.is_numeric_dtype(col.dtype): |
| 3674 | continue |
| 3675 | modes.append(col.mode(dropna=dropna, split_every=split_every)) |
| 3676 | return concat(modes, axis=1) |
| 3677 | |
| 3678 | @derived_from(pd.DataFrame) |
| 3679 | def add_prefix(self, prefix, axis=None): |