'Efficient way to know region of a coordinate

everyone, I want to know if there is an efficienct way to know if a coordinate locate in a region. Just like picture below. I want to know each coordinate locate which region below table and get corresponding feature. enter image description here



Solution 1:[1]

I think you want

for s in bladderselecteddf.TSS_Start_Site:
    genes = refdf[ (s >= refdf.Start) & (s <= refdf.End) ].gene_name

From your question, it is a little difficult to figure out exactly what you want.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ssm