We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9a7b8c commit f51bfcaCopy full SHA for f51bfca
pandas/core/frame.py
@@ -119,6 +119,7 @@
119
is_integer_dtype,
120
is_iterator,
121
is_list_like,
122
+ is_numeric_dtype,
123
is_object_dtype,
124
is_scalar,
125
is_sequence,
@@ -10628,8 +10629,8 @@ def quantile(
10628
10629
"""
10630
validate_percentile(q)
10631
axis = self._get_axis_number(axis)
-
10632
- if numeric_only is no_default:
+ any_not_numeric = any(not is_numeric_dtype(x) for x in self.dtypes)
10633
+ if numeric_only is no_default and any_not_numeric:
10634
warnings.warn(
10635
"In future versions of pandas, numeric_only will be set to "
10636
"False by default, and the datetime/timedelta columns will "
0 commit comments