SettingWithCopyWarning

Code: dete_resignations["cease_date"] = dete_resignations["cease_date"].str.split("/").str[-1].astype("float64")

Why am I getting the following warning even-though I got the expected result:

“SettingWithCopyWarning : A value is trying to be set on a copy of a slice from a DataFrame.”

Hi @sivasiddharth929

Go through the below post, it will help you to understand why and from where you are getting the warning.

:slight_smile: .

1 Like