hi,
This is not from Dataquest exercises - i don’t know whether guidelines permit to answer apart from questions related to dataquest courses.
i have an example data from a csv file as shown below:
1st line tells the column names and 2nd line has contents.
i have extracted columns from D1 to D8. but i want to decode as these are in HEX and want them in string or whatever the actual data is encoded.
i used fromhex() function like : bytearray.fromhex().decode(‘utf-8’)
but unable to get the results. as i am only getting error as this is non-hexadecimal number.
after extracting (data D1 to D8) from csv file it was in type was str , which is the exact format required to use in fromhex() function. Then why is this not executing ?
TYPE,TIME,ID,D1,D2,D3,D4,D5,D6,D7,D8,ASCII,COUNT,PERIOD
RD11,4.2386,424,3,0,C,0,0,16,1,FF, ,107,0.0397
RD11,4.2394,375,F,F,0,0,0,0,0,0, ,43,0.1000
RD11,4.2396,236,10,BD,F,FF,20,0,0,8C, ,424,0.0100