diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py index 0c76280e7fdb4..f0f94450b0a36 100644 --- a/pandas/core/arrays/sparse/array.py +++ b/pandas/core/arrays/sparse/array.py @@ -637,6 +637,9 @@ def fill_value(self): See Also -------- + Series.sparse : Accessor for handling sparse data. + Series.sparse.npoints : The number of non- ``fill_value`` points. + Series.sparse.sp_values : An ndarray containing the non- ``fill_value`` values. SparseDtype : Dtype for data stored in :class:`SparseArray`. Series.value_counts : Return a Series containing counts of unique values. Series.fillna : Fill NA/NaN in a Series with a specified value. diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py index 10117aa6bf503..2402e0cd3c178 100644 --- a/pandas/core/strings/accessor.py +++ b/pandas/core/strings/accessor.py @@ -1366,6 +1366,14 @@ def match(self, pat: str, case: bool = True, flags: int = 0, na=None): """ Determine if each string starts with a match of a regular expression. + This method checks if the start of each string in the Series or + Index matches the specified regular expression (Regex) pattern, + allowing for complex string matching rules. + + Additionally, case sensitivity can be specified, Regex module flags can + be used to modify matching behavior, and a fill value for missing values + can be provided. + Parameters ---------- pat : str