Compare row and get Column header

Hi,

The below is the datatable I need to process

[DCM Placement ID,MP4 - 400 kbps - 480 x 270,MP4 - 400 kbps - 640 x 360,MP4 - 1000 kbps - 640 x 360,MP4 - 1500 kbps - 640 x 360,MP4 - 400 kbps - 640 x 480,MP4 - 720 kbps - 720 x 600,MP4 - 720 kbps - 854 x 720,MP4 - 1500 kbps - 1024 x 576,MP4 - 2048 kbps - 1280 x 720,MP4 - 4096 kbps - 1920 x 1080,MP4 - 20480 kbps - 1920 x 1080
265****,False,False,False,False,False,False,False,False,False,False,True
264****,False,False,False,False,False,False,False,False,False,False,True
265****,False,False,False,False,False,False,False,False,False,False,True
273****,True,True,True,True,True,True,True,True,True,True,True
]

Here, I want to grab the column headers if the row has true value like

DCM Placement ID Sizes(String)
265**** MP4 - 20480 kbps - 1920 x 1080
264**** MP4 - 20480 kbps - 1920 x 1080
265**** MP4 - 20480 kbps - 1920 x 1080
273**** MP4 - 400 kbps - 480 x 270,MP4 - 400 kbps - 640 x 360,MP4 - 1000 kbps - 640 x 360,MP4 - 1500 kbps - 640 x 360,MP4 - 400 kbps - 640 x 480,MP4 - 720 kbps - 720 x 600,MP4 - 720 kbps - 854 x 720,MP4 - 1500 kbps - 1024 x 576,MP4 - 2048 kbps - 1280 x 720,MP4 - 4096 kbps - 1920 x 1080,MP4 - 20480 kbps - 1920 x 1080

Can anyone help me on implementing this in code.

Thanks,

1 Like

Hello @john.mari

Can you please put it in a excel and share the required input and output?

From where you are getting this data?

Hey @john.mari

So basically you want to get all the headers from the table right ?

Thanks
#nK

I found a way to implement this. Thanks for your concern.

Cool @john.mari

You can please share the solution which helps community !

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.