https://blog.csdn.net/weixin_43770077/article/details/110958529
报错ValueError: y_true contains only one label (0). Please provide the true labels explicitly through
https://stackoverflow.com/questions/62746655/xgboost-python-error-size-of-labels-must-equal-to-number-of-rows
XGBoost Python error: “Size of labels must equal to number of rows”
Xgboost expects a 2-d array of inputs, and a vector of outputs. You are giving it two vectors, so it is confused. using df[[“columnone”]] for the input should work.