We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d603c85 commit a784237Copy full SHA for a784237
pandas/core/frame.py
@@ -120,6 +120,7 @@
120
is_integer_dtype,
121
is_iterator,
122
is_list_like,
123
+ is_numeric_dtype,
124
is_object_dtype,
125
is_scalar,
126
is_sequence,
@@ -10595,8 +10596,8 @@ def quantile(
10595
10596
"""
10597
validate_percentile(q)
10598
axis = self._get_axis_number(axis)
-
10599
- if numeric_only is no_default:
+ any_not_numeric = any(not is_numeric_dtype(x) for x in self.dtypes)
10600
+ if numeric_only is no_default and any_not_numeric:
10601
warnings.warn(
10602
"In future versions of pandas, numeric_only will be set to "
10603
"False by default, and the datetime/timedelta columns will "
0 commit comments