input: Write a python function to create a Tkinter window displaying a table from a given pandas DataFrame.
  assert create_table(pd.DataFrame({'Name':['John','Doe'],'Age':[28,34]}))==None
  assert create_table(pd.DataFrame({'City':['New York','Los Angeles'],'Population':[8000000,4000000]}))==None
  assert create_table(pd.DataFrame({'Item':['Pen','Pencil'],'Price':[1,0.5]}))==None
output: def create_table(df):
      import tkinter as tk
      from tkinter import ttk
      
      root = tk.Tk()
      root.title("DataFrame Table")
      
      frame = ttk.Frame(root)
      frame.pack(fill='both', expand=True)
      
      tree = ttk.Treeview(frame, columns=list(df.columns), show='headings')
      
      for col in df.columns:
          tree.heading(col, text=col)
          tree.column(col, anchor='center')
      
      for index, row in df.iterrows():
          tree.insert("", "end", values=list(row))
      
      tree.pack(fill='both', expand=True)
      
      root.mainloop()