File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -1518,7 +1518,7 @@ cdef object _try_infer_map(object dtype):
1518
1518
1519
1519
def infer_dtype (value: object , skipna: bool = True ) -> str:
1520
1520
"""
1521
- Return a string label of the type of a scalar or list-like of values .
1521
+ Return a string label of the type of the elements in a list-like input .
1522
1522
1523
1523
This method inspects the elements of the provided input and determines
1524
1524
classification of its data type. It is particularly useful for
@@ -1527,7 +1527,7 @@ def infer_dtype(value: object, skipna: bool = True) -> str:
1527
1527
1528
1528
Parameters
1529
1529
----------
1530
- value : scalar , list , ndarray , or pandas type
1530
+ value : list , ndarray , or pandas type
1531
1531
The input data to infer the dtype.
1532
1532
skipna : bool , default True
1533
1533
Ignore NaN values when inferring the type.
@@ -1573,6 +1573,7 @@ def infer_dtype(value: object, skipna: bool = True) -> str:
1573
1573
1574
1574
Notes
1575
1575
-----
1576
+ - The value parameter must be an iterable; scalar inputs are not supported.
1576
1577
- 'mixed' is the catchall for anything that is not otherwise
1577
1578
specialized
1578
1579
- 'mixed-integer-float' are floats and integers
Original file line number Diff line number Diff line change @@ -5108,8 +5108,8 @@ def _warn_about_deprecated_aliases(name: str, is_period: bool) -> str:
5108
5108
warnings.warn(
5109
5109
f"\'{name}\' is deprecated and will be removed "
5110
5110
f"in a future version , please use "
5111
- f"\'{c_PERIOD_AND_OFFSET_DEPR_FREQSTR.get(name )}\'"
5112
- f" instead.",
5111
+ f"\'{c_PERIOD_AND_OFFSET_DEPR_FREQSTR.get(name )}\' "
5112
+ f"instead.",
5113
5113
FutureWarning ,
5114
5114
stacklevel = find_stack_level(),
5115
5115
)
@@ -5122,8 +5122,8 @@ def _warn_about_deprecated_aliases(name: str, is_period: bool) -> str:
5122
5122
warnings.warn(
5123
5123
f" \' {name}\' is deprecated and will be removed "
5124
5124
f" in a future version, please use "
5125
- f" \' {_name}\' "
5126
- f" instead." ,
5125
+ f" \' {_name}\' "
5126
+ f" instead." ,
5127
5127
FutureWarning ,
5128
5128
stacklevel = find_stack_level(),
5129
5129
)
You can’t perform that action at this time.
0 commit comments