Apr-22-2017, 07:46 PM
Split them into timestamp vs. data with string slicing
That bit there is proving to be tricky for me.
I have tried the split method, to turn the long string into a list and separate all the timestamps:
data.split('AA08')
This gives me ['AA08', data, 'AA08', data, etc..]
I want it to be [AA08+data, AA08+data]
It's probably a simple solution but I'm such a newbie with python. I'm an embedded C engineer and don't deal with manipulating these kind of data structures or methods often.. :(
That bit there is proving to be tricky for me.
I have tried the split method, to turn the long string into a list and separate all the timestamps:
data.split('AA08')
This gives me ['AA08', data, 'AA08', data, etc..]
I want it to be [AA08+data, AA08+data]
It's probably a simple solution but I'm such a newbie with python. I'm an embedded C engineer and don't deal with manipulating these kind of data structures or methods often.. :(