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

Timestamp column can be converted to type "object" which potentially causes the .diff() to fail #38

Closed
samuelwnaylor opened this issue Nov 4, 2024 · 0 comments · Fixed by #39
Labels
bug Something isn't working

Comments

@samuelwnaylor
Copy link
Collaborator

diffdf = df.groupby("TurbineName", observed=False).ffill().fillna(0).diff()

Example error when the .diff() is run: TypeError: unsupported operand type(s) for -: 'int' and 'Timestamp'

@samuelwnaylor samuelwnaylor added the bug Something isn't working label Nov 4, 2024
samuelwnaylor added a commit that referenced this issue Nov 4, 2024
samuelwnaylor added a commit that referenced this issue Nov 4, 2024
@aclerc aclerc closed this as completed in #39 Nov 4, 2024
aclerc pushed a commit that referenced this issue Nov 4, 2024
* fix: ignore timestamp columns in stuck data function

Fixes #38

* bump version

* run smarteole example notebook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant