Skip to content
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

MAINT: Day.delta deprecation in pandas #1193

Open
jklenzing opened this issue Apr 4, 2024 · 0 comments
Open

MAINT: Day.delta deprecation in pandas #1193

jklenzing opened this issue Apr 4, 2024 · 0 comments

Comments

@jklenzing
Copy link
Member

Description

From running the unit tests:

  /home/runner/work/pysat/pysat/pysat/_orbits.py:382: FutureWarning: Day.delta is deprecated and will be removed in a future version. Use pd.Timedelta(obj) instead
    step = dt.timedelta(seconds=step.delta.total_seconds())

Potential impact

  • FutureWarning, will probably take place with pandas 3.0 release (2024?)
  • Needs to be replaced or version capped

Potential solution(s)

Update to pds.Timedelta notation. Simply replacing this for step.delta breaks the code quite a bit. More research is needed.

Alternatives

Rewrite this section.

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

No branches or pull requests

1 participant