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

TypeError: cannot subtract DatetimeArray from ndarray #1

Open
shlid007 opened this issue Oct 2, 2022 · 0 comments
Open

TypeError: cannot subtract DatetimeArray from ndarray #1

shlid007 opened this issue Oct 2, 2022 · 0 comments

Comments

@shlid007
Copy link

shlid007 commented Oct 2, 2022

Hi - I am getting the error, "TypeError: cannot subtract DatetimeArray from ndarray" from the code step below. Is this error severe, and if so, what is the fix?

df['delay']=(df['clear_date']-df['due_in_date']).dt.days

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