Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
writing in to excel sheet with label
I am reading data from Serial port. data are in format below. Below code are seprating the data. I wanna know how can write it in excel sheet with time and date/mode/ dir/ actual postion as header and values which are CSV under paricular header
time and date: 23-3-13 3:14:23
if __name__ == '__main__':
print "value is",val
for lines in lines[:-1]:
foo.write("%s," % ":".join(parts[1:]))