Skip to content

Commit c9b3c91

Browse files
committed
Adjust according to comments
1 parent ef5c259 commit c9b3c91

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

doc/source/whatsnew/v0.24.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ Other API Changes
10081008
- Slicing a single row of a DataFrame with multiple ExtensionArrays of the same type now preserves the dtype, rather than coercing to object (:issue:`22784`)
10091009
- :class:`DateOffset` attribute `_cacheable` and method `_should_cache` have been removed (:issue:`23118`)
10101010
- Comparing :class:`Timedelta` to be less or greater than unknown types now raises a ``TypeError`` instead of returning ``False`` (:issue:`20829`)
1011-
- :meth:`Series.searchsorted`, when supplied a scalar value to search for, now returns a scalar instead of an array (:issue:`xxxxx`).
1011+
- :meth:`Series.searchsorted`, when supplied a scalar value to search for, now returns a scalar instead of an array (:issue:`23801`).
10121012
- :meth:`Categorical.searchsorted`, when supplied a scalar value to search for, now returns a scalar instead of an array (:issue:`23466`).
10131013
- :meth:`Categorical.searchsorted` now raises a ``KeyError`` rather that a ``ValueError``, if a searched for key is not found in its categories (:issue:`23466`).
10141014
- :meth:`Index.hasnans` and :meth:`Series.hasnans` now always return a python boolean. Previously, a python or a numpy boolean could be returned, depending on circumstances (:issue:`23294`).

pandas/core/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,7 @@ def factorize(self, sort=False, na_sentinel=-1):
12121212
same shape as `value`.
12131213
12141214
.. versionchanged :: 0.24.0
1215-
Ìf `value`is a scalar, an int is now always returned.
1215+
If `value` is a scalar, an int is now always returned.
12161216
Previously, scalar inputs returned an 1-item array for
12171217
:class:`Series` and :class:`Categorical`.
12181218

pandas/util/testing.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
is_bool, is_categorical_dtype, is_datetime64_dtype, is_datetime64tz_dtype,
2828
is_datetimelike_v_numeric, is_datetimelike_v_object,
2929
is_extension_array_dtype, is_interval_dtype, is_list_like, is_number,
30-
is_period_dtype, is_scalar, is_sequence, is_timedelta64_dtype,
31-
needs_i8_conversion) # noqa
30+
is_period_dtype, is_sequence, is_timedelta64_dtype, needs_i8_conversion)
31+
from pandas.core.dtypes.common import is_scalar # noqa: F401
3232
from pandas.core.dtypes.missing import array_equivalent
3333

3434
import pandas as pd

0 commit comments

Comments
 (0)