I have a simple dataframe with continous and categorical column:
Unemployment Rate AcceptsCash
E020 0.058080 0
E021 0.049818 0
E022 0.037112 1
E023 0.051215 0
E024 0.051215 0
E025 0.065413 0
E026 0.071571 0
E027 0.060130 0
E029 0.035013 1
however, when I try to display logistic regression plot using seaborn code:
sns.lmplot(x="Unemployment Rate", y="AcceptsCash", data=final_data_copy, logistic=True, fit_reg = True)
I get this warning and furthermore the plot only contains scatter points but not actually the regression line, any tips what can be wrong?
RuntimeWarning: All-NaN slice encountered
def _nanquantile_ureduce_func(a, q, axis=None, out=None, overwrite_input=False,