(self, dropna=True, split_every=False, numeric_only=False)
| 3698 | |
| 3699 | @derived_from(pd.DataFrame) |
| 3700 | def mode(self, dropna=True, split_every=False, numeric_only=False): |
| 3701 | modes = [] |
| 3702 | for _, col in self.items(): |
| 3703 | if numeric_only and not pd.api.types.is_numeric_dtype(col.dtype): |
| 3704 | continue |
| 3705 | modes.append(col.mode(dropna=dropna, split_every=split_every)) |
| 3706 | return concat(modes, axis=1) |
| 3707 | |
| 3708 | @derived_from(pd.DataFrame) |
| 3709 | def add_prefix(self, prefix, axis=None): |