I am trying to fit a logistic regression curve on the data without the help of seaborn. I tried the following code, but the output has a lot of curves ( figure below ). How