I have below a column3 in df which is made of array of values. I want to access each elements from column3 but I am unable to.
I tried indexing df.column3[1] but it returns all the values. I see some other SO threads which mentions applymap or unpack method but not sure if it applies here and based on example how to use them For simplicity I am showing only 1 row. Also data is timeseries so one of the col is timestamp again for simplicity just col1 with value a
column1. column 2 column 3
Row1 a 2 [{port_no=1, status=0, ts=1624467015}, {port_no=2,
status=0, ts=1624467015}]
Expected output - ability to query each port_no and its status - I dont mind creating independent df columns for each port_no and its associated value.
Expected output dataframe
col1. col2 column 3 col 4
Row1 a 2 [{port_no=1,status=0,ts=1624467015}] [{port_no=1,status=0,ts=1624467015}]