Guided project-: Clean And Analyze Employee Exit Surveys

dete_resignations[‘institute_service’] = dete_resignations[‘cease_date’] - dete_resignations[‘dete_start_date’]

The above code is throwing the following error:

TypeError: ufunc ‘subtract’ did not contain a loop with signature matching types dtype(’<U32’) dtype(’<U32’) dtype(’<U32’)

would appreciate any help!!

Hi Arjun! It’s a little difficult to know for sure what the problem is based on the information you provided. My first guess is to examine the cease_date and dete_start_date columns to ensure that both contain float values (talked about on this screen)).

If this doesn’t lead you to a solution, would you be able to post your notebook so other members of the community can have a look? Thanks!

Some of the values were in the form of a string, i changed them and the code worked.

Thanks for the assist!

I’m glad you were able to figure it out! :clap::tada:

Please make sure to mark your post as solved (how-to in this post) so that others who have the same issue can see when they search the forums. Happy coding!