Skip to content

Commit 16a0d6c

Browse files
author
GrimmXoXo
committed
Fix PR review: Revert offsets.pyx changes, update lib.pyx
1 parent aef4a66 commit 16a0d6c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

pandas/_libs/lib.pyx

-1
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,6 @@ def infer_dtype(value: object, skipna: bool = True) -> str:
15731573

15741574
Notes
15751575
-----
1576-
- The value parameter must be an iterable; scalar inputs are not supported.
15771576
- 'mixed' is the catchall for anything that is not otherwise
15781577
specialized
15791578
- 'mixed-integer-float' are floats and integers

pandas/_libs/tslibs/offsets.pyx

+4-4
Original file line numberDiff line numberDiff line change
@@ -5108,8 +5108,8 @@ def _warn_about_deprecated_aliases(name: str, is_period: bool) -> str:
51085108
warnings.warn(
51095109
f"\'{name}\' is deprecated and will be removed "
51105110
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.",
51135113
FutureWarning,
51145114
stacklevel=find_stack_level(),
51155115
)
@@ -5122,8 +5122,8 @@ def _warn_about_deprecated_aliases(name: str, is_period: bool) -> str:
51225122
warnings.warn(
51235123
f"\'{name}\' is deprecated and will be removed "
51245124
f"in a future version, please use "
5125-
f"\'{_name}\' "
5126-
f"instead.",
5125+
f"\'{_name}\'"
5126+
f" instead.",
51275127
FutureWarning,
51285128
stacklevel=find_stack_level(),
51295129
)

0 commit comments

Comments
 (0)