I have a bytestream that would like to read into the Python. I would like to use Pandas to hold the data. For example:
bytestream = '000102030404'
First I need to split the bytestream into different rows, with fixed size (2 bytes in this example).
bytestreamArray = ['0001', '0203', '0404']
Then I would like to split the array into two different columns
| Col1 | Col2 |
|---|---|
| 00 | 01 |
| 02 | 03 |
| 04 | 04 |
I wonder if I could do all in Pandas? Or I need to split the row in Python first then process it in Pandas?
Thanks in advance
