Skip to content

DOC: What does TimeDelta.seconds do? #49568

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

Closed
1 task done
Zaijab opened this issue Nov 7, 2022 · 1 comment · Fixed by #49584
Closed
1 task done

DOC: What does TimeDelta.seconds do? #49568

Zaijab opened this issue Nov 7, 2022 · 1 comment · Fixed by #49584
Labels
Docs Needs Triage Issue that has not been reviewed by a pandas team member

Comments

@Zaijab
Copy link

Zaijab commented Nov 7, 2022

Pandas version checks

  • I have checked that the issue still exists on the latest versions of the docs on main here

Location of the documentation

https://pandas.pydata.org/docs/dev/reference/api/pandas.Timedelta.seconds.html#pandas-timedelta-seconds

Documentation problem

Documentation is blank.

Suggested fix for documentation

Write documentation for the property.

Looking at the source it seems like the definition is

    @property
    def seconds(self) -> int: ...

Which unfortunately I do not understand. I just learned that Python has an ellipsis object. All I know is that the thing I really wanted was total_seconds(). I got a nonsense answer using seconds and wanted to figure out what happend.

@Zaijab Zaijab added Docs Needs Triage Issue that has not been reviewed by a pandas team member labels Nov 7, 2022
@jbrockmendel
Copy link
Member

Same as datetime.timedelta.seconds, would accept a PR to add docstring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs Needs Triage Issue that has not been reviewed by a pandas team member
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants