DOC: fix EX02 errors in docstrings
State: closed

Related to the issue #51236

This PR enables functions:
`pandas.core.groupby.DataFrameGroupBy.take`
`pandas.Timestamp.fromtimestamp`

Labels:
name: Docs

Comments:
should be good, thanks - if you resolve the conflicts we can get this in
I've got 1 failure.
```
=================================================================================== FAILURES ====================================================================================
_________________________________________________________________ test_nat_doc_strings[Timestamp.fromtimestamp] _________________________________________________________________

compare = (<class 'pandas._libs.tslibs.timestamps.Timestamp'>, 'fromtimestamp')

    @pytest.mark.parametrize(
        "compare",
        (
            _get_overlap_public_nat_methods(Timestamp, True)
            + _get_overlap_public_nat_methods(Timedelta, True)
        ),
        ids=lambda x: f"{x[0].__name__}.{x[1]}",
    )
    def test_nat_doc_strings(compare):
        # see gh-17327
        #
        # The docstrings for overlapping methods should match.
        klass, method = compare
        klass_doc = getattr(klass, method).__doc__
    
        # Ignore differences with Timestamp.isoformat() as they're intentional
        if klass == Timestamp and method == "isoformat":
            return
    
        if method == "to_numpy":
            # GH#44460 can return either dt64 or td64 depending on dtype,
            #  different docstring is intentional
            return
    
        nat_doc = getattr(NaT, method).__doc__
>       assert klass_doc == nat_doc
E       AssertionError: assert '\n        Ti...me.\n        ' == '\n        Ti...me.\n        '
E         Skipping 188 identical leading characters in diff, use -v to show
E         - 584199972)
E         + 584199972)  # doctest: +SKIP
E                   Timestamp('2020-03-14 15:32:52')
E           
E                   Note that the output may change depending on your local time.

pandas/tests/scalar/test_nat.py:325: AssertionError
```
yeah I think you just need to make the same change to the docstring in pandas/_libs/tslibs/nattype.pyx
> yeah I think you just need to make the same change to the docstring in pandas/_libs/tslibs/nattype.pyx

Thank you, I added the change in pandas/_libs/tslibs/nattype.pyx
🤔 CI keeps failing with `ci/code_checks.sh: Permission denied`, which I've not seen on other jobs. Restarting / merging didn't help. Not sure what to do here

Do you feel like trying to reset to `upstream/main` and then push the same changes to a new branch and opening a new pull request? No idea if that'll fix it, but I don't know what else to try here
> 🤔 CI keeps failing with `ci/code_checks.sh: Permission denied`, which I've not seen on other jobs. Restarting / merging didn't help. Not sure what to do here
> 
Yes, I noticed that too and I have no clue what is the reason.
> Do you feel like trying to reset to `upstream/main` and then push the same changes to a new branch and opening a new pull request? No idea if that'll fix it, but I don't know what else to try here
> 
I agree it might be the best way to deal with the situation. I will push the same changes to a new branch and open a new PR.

Did you run `chmod` on `ci/code_checks.sh` @natmokval? It looks like the file permissions changed `100755 → 100644`

Looks like it was originally 755

```
chmod 755 ci/code_checks.sh
```
looks like we did this one in https://github.com/pandas-dev/pandas/pull/51453, so we can close this PR