Repository: Zeroto521/my-data-toolkit

Issue:
EHN: new accessor method `get_attr`



Discussion:
# [Codecov](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/379?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero) Report
> Merging [#379](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/379?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero) (20f78e3) into [master](https://codecov.io/gh/Zeroto521/my-data-toolkit/commit/8690378ad990f85e7c9aa408194f01d611a5466d?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero) (8690378) will **increase** coverage by `0.00%`.
> The diff coverage is `100.00%`.

[![Impacted file tree graph](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/379/graphs/tree.svg?width=650&height=150&src=pr&token=ukBguscD8E&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero)](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/379?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero)

```diff
@@           Coverage Diff           @@
##           master     #379   +/-   ##
=======================================
  Coverage   99.80%   99.81%           
=======================================
  Files          23       23           
  Lines         521      529    +8     
  Branches       73       73           
=======================================
+ Hits          520      528    +8     
  Partials        1        1           
```


| [Impacted Files](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/379?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero) | Coverage Δ | |
|---|---|---|
| [dtoolkit/accessor/series.py](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/379/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero#diff-ZHRvb2xraXQvYWNjZXNzb3Ivc2VyaWVzLnB5) | `100.00% <100.00%> (ø)` | |
| [dtoolkit/geoaccessor/geoseries.py](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/379/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero#diff-ZHRvb2xraXQvZ2VvYWNjZXNzb3IvZ2Vvc2VyaWVzLnB5) | `100.00% <100.00%> (ø)` | |
| [dtoolkit/transformer/factory.py](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/379/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero#diff-ZHRvb2xraXQvdHJhbnNmb3JtZXIvZmFjdG9yeS5weQ==) | `100.00% <100.00%> (ø)` | |

------

[Continue to review full report at Codecov](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/379?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/379?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero). Last update [8690378...20f78e3](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/379?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero).


Resolving patch:
diff --git a/dtoolkit/accessor/series.py b/dtoolkit/accessor/series.py
--- a/dtoolkit/accessor/series.py
+++ b/dtoolkit/accessor/series.py
@@ -392,7 +392,7 @@ def lens(s: pd.Series) -> pd.Series:
     Notes
     -----
     To keep the Python naming style, so use this accessor via
-    ``Series.len`` not ``Series.lens``.
+    ``Series.len`` rather than ``Series.lens``.
 
     Examples
     --------
@@ -534,6 +534,7 @@ def error_report(
 
 
 @register_series_method(name="getattr")
+@register_series_method
 def get_attr(s: pd.Series, name: str, *args, **kwargs) -> pd.Series:
     """
     Return the value of the named attribute of Series element.
@@ -559,7 +560,7 @@ def get_attr(s: pd.Series, name: str, *args, **kwargs) -> pd.Series:
     Notes
     -----
     To keep the Python naming style, so use this accessor via
-    ``Series.getattr`` not ``Series.get_attr``.
+    ``Series.getattr`` rather than ``Series.get_attr``.
 
     Examples
     --------


Test patch: