Repository: Zeroto521/my-data-toolkit

Issue:
API: call `get_attr` via `getattr` and `lens` via `len`
<!--
Thanks for contributing a pull request!

Please follow these standard acronyms to start the commit message:

- ENH: enhancement
- BUG: bug fix
- DOC: documentation
- TYP: type annotations
- TST: addition or modification of tests
- MAINT: maintenance commit (refactoring, typos, etc.)
- BLD: change related to building
- REL: related to releasing
- API: an (incompatible) API change
- DEP: deprecate something, or remove a deprecated object
- DEV: development tool or utility
- REV: revert an earlier commit
- PERF: performance improvement
- BOT: always commit via a bot
- CI: related to CI or CD
- CLN: Code cleanup
-->

- [x] closes #392
- [x] whatsnew entry

To keep the Python naming style, so use the alias name.


Discussion:
# [Codecov](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/394?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero) Report
> Merging [#394](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/394?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero) (693122f) into [master](https://codecov.io/gh/Zeroto521/my-data-toolkit/commit/bd1bb8f49c94eeb796a5fbb3b49756545399a257?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero) (bd1bb8f) 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/394/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/394?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero)

```diff
@@           Coverage Diff           @@
##           master     #394   +/-   ##
=======================================
  Coverage   99.81%   99.81%           
=======================================
  Files          23       23           
  Lines         547      550    +3     
  Branches       74       74           
=======================================
+ Hits          546      549    +3     
  Partials        1        1           
```


| [Impacted Files](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/394?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/394/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/394/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%> (ø)` | |

------

[Continue to review full report at Codecov](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/394?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/394?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero). Last update [bd1bb8f...693122f](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/394?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
@@ -373,12 +373,6 @@ def wrap_collapse(x) -> list[Any]:
 @register_series_method
 def lens(s: pd.Series) -> pd.Series:
     """
-    .. warning::
-
-        Call this method via ``Series.lens()`` is deprecated and will be removed
-        in **0.0.10**. Please call it via ``Series.len()`` instead.
-        (Warning added DToolKit **0.0.9**)
-
     Return the length of each element in the series.
 
     Equals to::
@@ -418,16 +412,6 @@ def lens(s: pd.Series) -> pd.Series:
     6    NaN
     dtype: float64
     """
-    from warnings import warn
-
-    warn(
-        "Call 'dtoolkit.accessor.series.lens' method via `Series.lens()` "
-        "is deprecated and will be removed in 0.0.10. Please call it via "
-        "'Series.len()' instead. "
-        "(Warning added DToolKit 0.0.9)",
-        DeprecationWarning,
-    )
-
     from pandas.api.types import is_number
 
     def wrap_len(x) -> int | None:


Test patch: