Tree.insert("", 0, values=(student_no, gender, distance, scholarship, stanine)) Reader = csv.DictReader(f, delimiter=',') Tree.heading('prediction', text="Prediction in %", anchor=W) Tree.heading('stanine', text="STANINE Rank", anchor=W) Tree.heading('distance', text="Distance in KM", anchor=W) tree.heading('scholarship', text="Scholarship", anchor=W) Tree.heading('gender', text="Gender", anchor=W) Tree.heading('student_no', text="Student No.", anchor=W) nfig(command=tree.yview) scrollbary.pack(side=RIGHT, fill=Y) nfig(command=tree.xview) scrollbarx.pack(side=BOTTOM, fill=X) Tree = ttk.Treeview(TableMargin, columns=("student_no", "gender", "distance", "scholarship", "stanine", "prediction"), height=400, selectmode="extended", yscrollcommand=t, xscrollcommand=t) Scrollbary = Scrollbar(TableMargin, orient=VERTICAL) Scrollbarx = Scrollbar(TableMargin, orient=HORIZONTAL) Root.title("FAITH Enrollment Prediction Simulator") Xtrain,xtest,ytrain,ytest = train_test_split(x,y,test_size=0.24,random_state=40)įeatures = np.array(data]) Import pandas as pd from sklearn.model_selectionįrom sklearn.linear_model import LinearRegression I also know how to add new columns but I do not know how to insert values in specific columns. What is the best solution in this problem? I want to insert values in a specific column like this: :
0 Comments
Leave a Reply. |