Skip to content

Commit 2498bd1

Browse files
authored
DOC: Correct grammar issues about a/an usage (#63042)
1 parent 0d06ac8 commit 2498bd1

File tree

14 files changed

+16
-16
lines changed

14 files changed

+16
-16
lines changed

pandas/_libs/lib.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2712,7 +2712,7 @@ def maybe_convert_objects(ndarray[object] objects,
27122712
break
27132713
elif PyDateTime_Check(val) or cnp.is_datetime64_object(val):
27142714

2715-
# if we have an tz's attached then return the objects
2715+
# if we have a tz's attached then return the objects
27162716
if convert_non_numeric:
27172717
if getattr(val, "tzinfo", None) is not None:
27182718
seen.datetimetz_ = True

pandas/_libs/tslibs/nattype.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ class NaTType(_NaT):
11681168
fromordinal = _make_error_func(
11691169
"fromordinal",
11701170
"""
1171-
Construct a timestamp from a a proleptic Gregorian ordinal.
1171+
Construct a timestamp from a proleptic Gregorian ordinal.
11721172
11731173
This method creates a `Timestamp` object corresponding to the given
11741174
proleptic Gregorian ordinal, which is a count of days from January 1,

pandas/_libs/tslibs/offsets.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1803,7 +1803,7 @@ class DateOffset(RelativeDeltaOffset, metaclass=OffsetMeta):
18031803
See Also
18041804
--------
18051805
dateutil.relativedelta.relativedelta : The relativedelta type is designed
1806-
to be applied to an existing datetime an can replace specific components of
1806+
to be applied to an existing datetime and can replace specific components of
18071807
that datetime, or represents an interval of time.
18081808
18091809
Examples

pandas/_libs/tslibs/timestamps.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1869,7 +1869,7 @@ class Timestamp(_Timestamp):
18691869
@classmethod
18701870
def fromordinal(cls, ordinal, tz=None):
18711871
"""
1872-
Construct a timestamp from a a proleptic Gregorian ordinal.
1872+
Construct a timestamp from a proleptic Gregorian ordinal.
18731873

18741874
This method creates a `Timestamp` object corresponding to the given
18751875
proleptic Gregorian ordinal, which is a count of days from January 1,

pandas/core/algorithms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1703,7 +1703,7 @@ def map_array(
17031703
]
17041704
else:
17051705
# Dictionary does not have a default. Thus it's safe to
1706-
# convert to an Series for efficiency.
1706+
# convert to a Series for efficiency.
17071707
# we specify the keys here to handle the
17081708
# possibility that they are tuples
17091709

pandas/core/arrays/period.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ def dt64arr_to_periodarr(
13351335
data, freq, tz=None
13361336
) -> tuple[npt.NDArray[np.int64], BaseOffset]:
13371337
"""
1338-
Convert an datetime-like array to values Period ordinals.
1338+
Convert a datetime-like array to values Period ordinals.
13391339
13401340
Parameters
13411341
----------

pandas/core/arrays/string_arrow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ class ArrowStringArray(ObjectStringArrayMixin, ArrowExtensionArray, BaseStringAr
107107
See Also
108108
--------
109109
:func:`array`
110-
The recommended function for creating a ArrowStringArray.
110+
The recommended function for creating an ArrowStringArray.
111111
Series.str
112112
The string methods are available on Series backed by
113-
a ArrowStringArray.
113+
an ArrowStringArray.
114114
115115
Notes
116116
-----

pandas/core/dtypes/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ def is_unsigned_integer_dtype(arr_or_dtype) -> bool:
882882
See Also
883883
--------
884884
api.types.is_signed_integer_dtype : Check whether the provided array
885-
or dtype is of an signed integer dtype.
885+
or dtype is of a signed integer dtype.
886886
api.types.is_integer_dtype : Check whether the provided array or dtype
887887
is of an integer dtype.
888888
api.types.is_numeric_dtype : Check whether the provided array or dtype
@@ -1264,7 +1264,7 @@ def is_numeric_dtype(arr_or_dtype) -> bool:
12641264
api.types.is_unsigned_integer_dtype: Check whether the provided array
12651265
or dtype is of an unsigned integer dtype.
12661266
api.types.is_signed_integer_dtype: Check whether the provided array
1267-
or dtype is of an signed integer dtype.
1267+
or dtype is of a signed integer dtype.
12681268
12691269
Examples
12701270
--------

pandas/core/groupby/generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2913,7 +2913,7 @@ def take(
29132913
Returns
29142914
-------
29152915
DataFrame
2916-
An DataFrame containing the elements taken from each group.
2916+
A DataFrame containing the elements taken from each group.
29172917
29182918
See Also
29192919
--------

pandas/core/indexers/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def check_setitem_lengths(indexer, value, values) -> bool:
126126
"""
127127
Validate that value and indexer are the same length.
128128
129-
An special-case is allowed for when the indexer is a boolean array
129+
A special-case is allowed for when the indexer is a boolean array
130130
and the number of true values equals the length of ``value``. In
131131
this case, no exception is raised.
132132

0 commit comments

Comments
 (0)