Skip to content

DOC: Fix pandas.Series.dt seconds, nanoseconds GL08, SA01 #59582

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Sep 9, 2024

Conversation

KatsiarynaDzibrova
Copy link
Contributor

@KatsiarynaDzibrova KatsiarynaDzibrova commented Aug 22, 2024

Fixes:
pandas.Series.dt.nanoseconds SA01
pandas.Series.dt.seconds SA01

@KatsiarynaDzibrova KatsiarynaDzibrova changed the title Fix ci series dt DOC: Fix pandas.Series.dt GL08, SA01 Aug 22, 2024
@MarcoGorelli
Copy link
Member

thanks @KatsiarynaDzibrova , looks like there's a test failure

_______ [doctest] pandas.core.indexes.accessors.DatetimeProperties.freq ________
394         ...         "2022-02-22 05:22:22-06:00",
395         ...         "2022-02-22 06:22:22-06:00",
396         ...         "2022-02-22 07:22:22-06:00",
397         ...         "2022-02-22 08:22:22-06:00",
398         ...         "2022-02-22 09:22:22-06:00",
399         ...         "2022-02-22 10:22:22-06:00",
400         ...         "2022-02-22 11:22:22-06:00",
401         ...     ]
402         ... )
403         >>> datetimeindex.freq
UNEXPECTED EXCEPTION: AttributeError("'Series' object has no attribute 'freq'")
Traceback (most recent call last):
  File "/home/runner/micromamba/envs/test/lib/python3.10/doctest.py", line 1350, in __run
    exec(compile(example.source, filename, "single",
  File "<doctest pandas.core.indexes.accessors.DatetimeProperties.freq[1]>", line 1, in <module>
  File "/home/runner/micromamba/envs/test/lib/python3.10/site-packages/pandas/core/generic.py", line 6066, in __getattr__
    return object.__getattribute__(self, name)
AttributeError: 'Series' object has no attribute 'freq'

@mroeschke mroeschke added the Docs label Aug 23, 2024
@KatsiarynaDzibrova KatsiarynaDzibrova changed the title DOC: Fix pandas.Series.dt GL08, SA01 DOC: Fix pandas.Series.dt seconds, nanoseconds GL08, SA01 Sep 6, 2024
@mroeschke mroeschke added this to the 3.0 milestone Sep 9, 2024
@mroeschke mroeschke merged commit 47b56ea into pandas-dev:main Sep 9, 2024
47 checks passed
@mroeschke
Copy link
Member

Thanks @KatsiarynaDzibrova

ammar-qazi pushed a commit to ammar-qazi/pandas that referenced this pull request Sep 9, 2024
…#59582)

* fix pandas.Series.dt.freq

* fix seconds, nanoseconds, microseconds

* remove fixed objects from code_checks.sh

* Remove Timedelta Index checks

* fix freq example

* remove freq

* bring back microseconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants