Question: How to write a Loading and display latest csv file in GUI module : python3 def load_csv_data(): # will show value error when csv file
How to write a Loading and display latest csv file in GUI
module : python3
def load_csv_data(): # will show value error when csv file have space between colume # skipinitialspace=True, used for ignore csv file strip white space csv_files = glob.glob('/root/Desktop/*.csv') latest_csv = max(all_files , key = os.path.getctime) col_list = ["ESSID", "BSSID", "channel", "Privacy", "Authentication"] df = pd.read_csv(r"/root/Desktop/*.csv", usecols = col_list, skipinitialspace = True )
button2 = tk.Button(button_frame, text="Load File", command=lambda: load_csv_data()) button2.grid(row=1, column=1, sticky="W")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
