I keep getting the semi-error listed in the title here. I know that I can use .copy(), but I am having trouble applying it without getting other errors. What changes would I have to make to my code below in order to not get this error anymore?
Screen Link: Learn data science with Python and R projects
dete_resignations['institute_service'] = dete_resignations['cease_date'] - dete_resignations['dete_start_date']
I also had the same error when doing this to extract the years alone:
years_alone = '([0-1][0-9])' dete_resignations['cease_date'] = dete_resignations['cease_date'].str.extract(years_alone)
What should I do in the future?