def createTableFrame(): #Your csv file can contain as many rows and colums as needed f = open("films.csv") #note here I have sent it root but you can also send it a frame newtable = cst(f, tableFrame) newtable.grid() Button(tableFrame, text="Hide Me", command=hideTableFrame).grid()
def tableNQS2(): # Your csv file can contain as many rows and colums as needed f = open("Extras.csv") # note here I have sent it root but you can also send it a frame try: self.newtable2 = cst(f, tableFrameNQS2) self.newtable2.grid() except StopIteration: return
def create_table_frame(): """ the descriptive statistics are displayed in a new frame by reading the stats stored in imported_data.csv [imported_data.csv is stored after importing training data] """ f = open("imported_data.csv") window = tkinter.Tk() window.wm_title("Feature Statistics") #window.geometry("500x500") tableFrame = tkinter.Frame(window) newtable = cst(f, tableFrame) newtable.grid() tkinter.Button( tableFrame, text="Close", command=lambda: hide_table_frame(tableFrame, window)).grid() tableFrame.grid()
from tkinter import * import csv from tables import createStandardTable as cst window = Tk() #Your file can contain any number of rows and columns so long as they #are even of course. Make sure you rename the films to the name of your file f = open("films.csv") #note here I have sent it root but you can also send it a frame #see using tables with frames #It actually returns a frame that will be placed on the window or frame #you send newtable = cst(f, window) newtable.grid()
toCity = StringVar() departDate = StringVar() departMonth = StringVar() # Declaring the title for the window window.title('Web Mining - WEB SCRAPING FOR MAKE-MY-TRIP and PAYTM') def tableFrames(): tableFrame3.grid() tableFrame2.grid() tableFrame.grid() # create a global newtable grid. f = open("my_csv.csv") newtable = cst(f, tableFrame) def createTableFrame(): f = open("sort_durationDec.csv") global newtable newtable = cst(f, tableFrame) newtable.grid() def Header(): f = open("my_csv.csv") global newtable newtable = cst(f, tableFrame) newtable.grid() def createTableFrame2(): f = open("my_csv.csv")
def createTableFrame(): f = open("list.csv") global newtable newtable = cst(f, f3) newtable.grid(padx=20, pady=20)
newlist[j][0] = y[x.index(cof)] newlist[j][2] = y[j] newlist[j][3] = x[j] newlist[j][4] = c.convert(coi, cof, x[j]) my_df1 = pd.DataFrame(newlist) my_df1.columns = [ 'FROM COUNTRY', 'FROM COUNTRY CODE', 'TO COUNTRY', 'TO COUNTRY CODE', 'VALUE' ] my_df1.to_csv('list.csv', index=False, header=True) ct() f = open("list.csv") newtable = cst(f, f3) def createTableFrame(): f = open("list.csv") global newtable newtable = cst(f, f3) newtable.grid(padx=20, pady=20) def ct(): global newtable newtable.destroy() createTableFrame()
def createTableFrame5(): f = open("sort_durationInc.csv") global newtable newtable = cst(f, tableFrame) newtable.grid()
def createTableFrame4(): f = open("priceSortDecrease.csv") global newtable newtable = cst(f, tableFrame) newtable.grid()
def createTableFrame2(): f = open("my_csv.csv") global newtable newtable = cst(f, tableFrame) newtable.grid()
def Header(): f = open("my_csv.csv") global newtable newtable = cst(f, tableFrame) newtable.grid()