Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up[FEA] Use `_get_numeric_types` in numeric reductions #2067
Projects
Comments
|
So to be fully explicit we would want changes like the following: def mean(self, *kwargs):
- return self._apply_support_method('mean', **kwargs)
+ return self._get_numeric_data()._apply_support_method('mean', **kwargs)Along with tests that this works when we have a small dataframe with both numeric and text dtypes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If would be great if the following worked:
Currently we get this
Typically the solution in Pandas is to strip out the non-numeric columns first
We should consider adding this method call in all dataframe reductions that expect numeric data like sum, mean, prod, std, var, cum* and so on.