I have a dataframe that look like:
df
Out[129]: 
         Unnamed: 0  Region     GeneID  DistanceValue
0                 0     0.0   79677107            0.0
1                 1     0.0   71920480            0.0
2                 2     0.0   77869780            0.0
3                 3     0.0   69838736            0.0
4                 4     0.0  100145371            0.0
            ...     ...        ...            ...
1097355     1097355    42.0       1415            NaN
1097356     1097356    42.0     356855            NaN
1097357     1097357    42.0   74513917            NaN
1097358     1097358    42.0        957            NaN
1097359     1097359    42.0        836            NaN
[1097360 rows x 4 columns]
I want to find all rows with Region value 6 and 8:
I can do so for 6, e.g.:
new_df = df.loc[(df['Region'] == 6)]
I tried sth like
new_df = df.loc[(df['Region'] == 6, 8)]
or
new_df1 = df.loc[(df['Region'] == 6)]
new_df2 = df.loc[(df['Region'] == 8)]
new_df = new_df1 + new_df2
But that doesn't work. Can someone help me with that?
