diff --git a/pandas/_testing.py b/pandas/_testing.py index 01d2bfe0458c8..0b3004ce12013 100644 --- a/pandas/_testing.py +++ b/pandas/_testing.py @@ -1014,7 +1014,7 @@ def assert_extension_array_equal( Parameters ---------- left, right : ExtensionArray - The two arrays to compare + The two arrays to compare. check_dtype : bool, default True Whether to check if the ExtensionArray dtypes are identical. check_less_precise : bool or int, default False diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 1d7527e73079c..6b2880810dcb2 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -2329,7 +2329,7 @@ def shift(self, periods=1, freq=None, axis=0, fill_value=None): periods : int, default 1 Number of periods to shift. freq : str, optional - Frequency string + Frequency string. axis : axis to shift, default 0 fill_value : optional diff --git a/pandas/core/indexers.py b/pandas/core/indexers.py index fe475527f4596..cadae9da6092f 100644 --- a/pandas/core/indexers.py +++ b/pandas/core/indexers.py @@ -296,7 +296,7 @@ def check_array_indexer(array: AnyArrayLike, indexer: Any) -> Any: indexer : array-like or list-like The array-like that's used to index. List-like input that is not yet a numpy array or an ExtensionArray is converted to one. Other input - types are passed through as is + types are passed through as is. Returns ------- diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py index 986f87ffe3734..0b85433b699a8 100644 --- a/pandas/core/indexes/period.py +++ b/pandas/core/indexes/period.py @@ -85,7 +85,7 @@ class PeriodIndex(DatetimeIndexOpsMixin, Int64Index): copy : bool Make a copy of input ndarray. freq : str or period object, optional - One of pandas period strings or corresponding objects + One of pandas period strings or corresponding objects. year : int, array, or Series, default None month : int, array, or Series, default None quarter : int, array, or Series, default None diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 9c46a0036ab0d..d0c64d54f30d6 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -85,7 +85,7 @@ class Styler: number and ```` is the column number. na_rep : str, optional Representation for missing values. - If ``na_rep`` is None, no special formatting is applied + If ``na_rep`` is None, no special formatting is applied. .. versionadded:: 1.0.0 @@ -446,7 +446,7 @@ def format(self, formatter, subset=None, na_rep: Optional[str] = None) -> "Style Parameters ---------- formatter : str, callable, dict or None - If ``formatter`` is None, the default formatter is used + If ``formatter`` is None, the default formatter is used. subset : IndexSlice An argument to ``DataFrame.loc`` that restricts which elements ``formatter`` is applied to. diff --git a/pandas/io/sql.py b/pandas/io/sql.py index 69e5a973ff706..e8666c495d39a 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -356,7 +356,7 @@ def read_sql( sql : str or SQLAlchemy Selectable (select or text object) SQL query to be executed or a table name. con : SQLAlchemy connectable (engine/connection) or database str URI - or DBAPI2 connection (fallback mode)' + or DBAPI2 connection (fallback mode). Using SQLAlchemy makes it possible to use any DB supported by that library. If a DBAPI2 object, only sqlite3 is supported. The user is responsible