title: Pandas_select rows from a dataframe based on column values
body: <p>I am new to Python. I have a data frame as shown below. This is a CSV file. I need to select all rows which contain Frequency values 0.8 and 0.6. I wrote the codes as shown but it is throwing an error.</p>
  <p>df_new = df[df['Frequency'] == 0.8 &amp; df['Frequency'] == 1.6 ]</p>
  <p>Below is the last line from the error I received.</p>
  <p>&quot;TypeError: Cannot perform 'rand_' with a dtyped [float64] array and scalar of type [bool]&quot;</p>
  <p>I ran the below code</p>
  <p>df_new = df[(df['Frequency'] == 0.8) &amp; (df['Frequency'] == 1.6) ]</p>
  <p>It is nt showing any error but values are not coming.it is showing only the name of columns .Please see the bwloe image</p>
  <p><a href="https://i.stack.imgur.com/KhVfj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KhVfj.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/E1qjp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E1qjp.png" alt="enter image description here" /></a></p>