-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
BugNeeds DiscussionRequires discussion from core team before further actionRequires discussion from core team before further actionReduction Operationssum, mean, min, max, etc.sum, mean, min, max, etc.
Description
-
I have checked that this issue has not already been reported.
-
I have confirmed this bug exists on the latest version of pandas.
-
(optional) I have confirmed this bug exists on the master branch of pandas.
Code Sample, a copy-pastable example
In [34]: pd.Series(['1', '2', '3']).median()
Out[34]: 2.0
In [36]: pd.DataFrame({"A": ['1', '2', '3']}).median()
Out[36]:
A 2.0
dtype: float64
Problem description
median
should not convert the input types. We seem to explicitly convert all non-float dtypes in nanmedian
. Do we want to do that?
Expected Output
TypeError or ValueError. Not sure
Metadata
Metadata
Assignees
Labels
BugNeeds DiscussionRequires discussion from core team before further actionRequires discussion from core team before further actionReduction Operationssum, mean, min, max, etc.sum, mean, min, max, etc.