data science name error: in spyder using python

enter image description here

data science problem there is some error in my code please some one help with it. I have tried multiple times can anyone suggest what to doo

Answer

You have never defined a variable called churn.
I think you wanted to use the variable data, where you created the data frame.