How to run logistic regression with weighted samples

I’m not sure on the weighting aspect but for labels try

labels = df["label"].values

2 Likes