I am writing a Tkinter GUI which will read a value from a Hardware and write it to CSV file using pandas but I am getting an error

#Storing data to CSV file
names=[]
c=Id.get()
names.append(c)
val=[]
d=hb.get()
val.append(d)
newd=dict(zip(names,val))
p.DataFrame(newd)
p.to_csv("Report.csv")

This is my code I wanted to read data from a hardware and write that data to a CSV file using above code but, unfortunately it is not working plz help!



Read more here: https://stackoverflow.com/questions/67015906/i-am-writing-a-tkinter-gui-which-will-read-a-value-from-a-hardware-and-write-it

Content Attribution

This content was originally published by Viraj Potdar at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: