X_val.columns = range(1,len(X_val.columns) + 1) 参考:Python pandas.DataFrame调整列顺序及修改index名 - huahuayu - 博客园 (cnblogs.com)