Repository: Zeroto521/my-data-toolkit

Issue:
MAINT: Set only positional parameter for `(geo)accessor`
<!--
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
-->

- [ ] closes #xxxx
- [x] whatsnew entry

The first parameter of `(geo)accessor` methods must be set as only positional parameter.


Discussion:
# [Codecov](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/612?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero) Report
> Merging [#612](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/612?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero) (2a6978d) into [main](https://codecov.io/gh/Zeroto521/my-data-toolkit/commit/c52be216202c2750ae8bd7e840af4c854c300f49?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero) (c52be21) will **decrease** coverage by `0.20%`.
> The diff coverage is `100.00%`.

```diff
@@            Coverage Diff             @@
##             main     #612      +/-   ##
==========================================
- Coverage   99.59%   99.39%   -0.21%     
==========================================
  Files          85       85              
  Lines         996      997       +1     
  Branches      103      103              
==========================================
- Hits          992      991       -1     
- Misses          1        2       +1     
- Partials        3        4       +1     
```


| [Impacted Files](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/612?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero) | Coverage Δ | |
|---|---|---|
| [dtoolkit/accessor/dataframe/boolean.py](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/612/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero#diff-ZHRvb2xraXQvYWNjZXNzb3IvZGF0YWZyYW1lL2Jvb2xlYW4ucHk=) | `100.00% <ø> (ø)` | |
| [dtoolkit/accessor/dataframe/decompose.py](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/612/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero#diff-ZHRvb2xraXQvYWNjZXNzb3IvZGF0YWZyYW1lL2RlY29tcG9zZS5weQ==) | `100.00% <ø> (ø)` | |
| [dtoolkit/accessor/dataframe/drop\_inf.py](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/612/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero#diff-ZHRvb2xraXQvYWNjZXNzb3IvZGF0YWZyYW1lL2Ryb3BfaW5mLnB5) | `100.00% <ø> (ø)` | |
| [dtoolkit/accessor/dataframe/expand.py](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/612/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero#diff-ZHRvb2xraXQvYWNjZXNzb3IvZGF0YWZyYW1lL2V4cGFuZC5weQ==) | `100.00% <ø> (ø)` | |
| [dtoolkit/accessor/dataframe/filter\_in.py](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/612/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero#diff-ZHRvb2xraXQvYWNjZXNzb3IvZGF0YWZyYW1lL2ZpbHRlcl9pbi5weQ==) | `100.00% <ø> (ø)` | |
| [dtoolkit/accessor/dataframe/repeat.py](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/612/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero#diff-ZHRvb2xraXQvYWNjZXNzb3IvZGF0YWZyYW1lL3JlcGVhdC5weQ==) | `100.00% <ø> (ø)` | |
| [dtoolkit/accessor/dataframe/to\_series.py](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/612/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero#diff-ZHRvb2xraXQvYWNjZXNzb3IvZGF0YWZyYW1lL3RvX3Nlcmllcy5weQ==) | `100.00% <ø> (ø)` | |
| [dtoolkit/accessor/dataframe/top\_n.py](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/612/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero#diff-ZHRvb2xraXQvYWNjZXNzb3IvZGF0YWZyYW1lL3RvcF9uLnB5) | `100.00% <ø> (ø)` | |
| [dtoolkit/accessor/dataframe/values\_to\_dict.py](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/612/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero#diff-ZHRvb2xraXQvYWNjZXNzb3IvZGF0YWZyYW1lL3ZhbHVlc190b19kaWN0LnB5) | `100.00% <ø> (ø)` | |
| [dtoolkit/accessor/series/cols.py](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/612/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero#diff-ZHRvb2xraXQvYWNjZXNzb3Ivc2VyaWVzL2NvbHMucHk=) | `100.00% <ø> (ø)` | |
| ... and [36 more](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/612/diff?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero) | |

------

[Continue to review full report at Codecov](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/612?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/612?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zero). Last update [c52be21...2a6978d](https://codecov.io/gh/Zeroto521/my-data-toolkit/pull/612?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/dataframe/repeat.py b/dtoolkit/accessor/dataframe/repeat.py
--- a/dtoolkit/accessor/dataframe/repeat.py
+++ b/dtoolkit/accessor/dataframe/repeat.py
@@ -10,7 +10,7 @@
 @register_dataframe_method
 def repeat(
     df: pd.DataFrame,
-    repeat: int | list[int],
+    repeats: int | list[int],
     /,
     axis: Axis = 0,
 ) -> pd.DataFrame:
@@ -24,7 +24,7 @@ def repeat(
 
     Parameters
     ----------
-    repeat : int or array of ints
+    repeats : int or array of ints
         The number of repetitions for each element. This should be a
         non-negative integer. Repeating 0 times will return an empty
         :obj:`~pandas.DataFrame`.
@@ -78,13 +78,12 @@ def repeat(
     1  2  4  4
     """
 
-    axis = df._get_axis_number(axis)
     return pd.DataFrame(
         np.repeat(
             df._values,
-            repeat,
-            axis=axis,
+            repeats,
+            axis=df._get_axis_number(axis),
         ),
-        index=df.index.repeat(repeat) if axis == 0 else df.index,
-        columns=df.columns.repeat(repeat) if axis == 1 else df.columns,
+        index=df.index.repeat(repeats) if axis == 0 else df.index,
+        columns=df.columns.repeat(repeats) if axis == 1 else df.columns,
     )


Test patch:
diff --git a/test/accessor/dataframe/test_repeat.py b/test/accessor/dataframe/test_repeat.py
--- a/test/accessor/dataframe/test_repeat.py
+++ b/test/accessor/dataframe/test_repeat.py
@@ -2,11 +2,11 @@
 import pytest
 from pandas.testing import assert_frame_equal
 
-from dtoolkit.accessor.dataframe import repeat  # noqa: F401, F811
+from dtoolkit.accessor.dataframe import repeat  # noqa: F401
 
 
 @pytest.mark.parametrize(
-    "repeat, axis, expected",
+    "repeats, axis, expected",
     [
         (1, 0, pd.DataFrame({"a": [1, 2], "b": [3, 4]})),
         (1, 1, pd.DataFrame({"a": [1, 2], "b": [3, 4]})),
@@ -45,9 +45,9 @@
         ),
     ],
 )
-def test_work(repeat, axis, expected):  # noqa: F811
+def test_work(repeats, axis, expected):
     df = pd.DataFrame({"a": [1, 2], "b": [3, 4]})
-    result = df.repeat(repeat, axis=axis)
+    result = df.repeat(repeats, axis=axis)
 
     assert_frame_equal(result, expected)