title: why is function not applying to dataframe? Series object has no attribute called query (Pandas)
body: <p>I have a dataframe user and calls where common column is user_id. I need to drop values in user dataframe where churn is not null and remove those user_id rows in calls.</p>
  <pre><code>users = user_id,first_name,last_name,age,city,reg_date,plan,churn_date
  1000,Anamaria,Bauer,45,&quot;Atlanta-Sandy Springs-Roswell, GA MSA&quot;,2018-12-24,ultimate,
  1001,Mickey,Wilkerson,28,&quot;Seattle-Tacoma-Bellevue, WA MSA&quot;,2018-08-13,surf,
  1002,Carlee,Hoffman,36,&quot;Las Vegas-Henderson-Paradise, NV MSA&quot;,2018-10-21,surf,
  1003,Reynaldo,Jenkins,52,&quot;Tulsa, OK MSA&quot;,2018-01-28,surf,
  1004,Leonila,Thompson,40,&quot;Seattle-Tacoma-Bellevue, WA MSA&quot;,2018-05-23,surf,
  1005,Livia,Shields,31,&quot;Dallas-Fort Worth-Arlington, TX MSA&quot;,2018-11-29,surf,
  1007,Eusebio,Welch,42,&quot;Grand Rapids-Kentwood, MI MSA&quot;,2018-07-11,surf,
  1008,Emely,Hoffman,53,&quot;Orlando-Kissimmee-Sanford, FL MSA&quot;,2018-08-03,ultimate,
  1009,Gerry,Little,19,&quot;San Jose-Sunnyvale-Santa Clara, CA MSA&quot;,2018-04-22,surf,
  1010,Wilber,Blair,52,&quot;Dallas-Fort Worth-Arlington, TX MSA&quot;,2018-03-09,surf,
  </code></pre>
  <pre><code>calls = id,user_id,call_date,duration
  1000_93,1000,2018-12-27,8.52
  1000_145,1000,2018-12-27,13.66
  1000_247,1000,2018-12-27,14.48
  1000_309,1000,2018-12-28,5.76
  1000_380,1000,2018-12-30,4.22
  1000_388,1000,2018-12-31,2.2
  1000_510,1000,2018-12-27,5.75
  1000_521,1000,2018-12-28,14.18
  1000_530,1000,2018-12-28,5.77
  1000_544,1000,2018-12-26,4.4
  </code></pre>
  <pre><code>filter_user = users[users['churn_date'].notnull()][&quot;user_id&quot;].tolist()
  </code></pre>
  <p>I am creating a function to use list of user_id's from filter_user</p>
  <pre><code>def new(df):
      df = df.query('user_id != @filter_user')
      return df
  </code></pre>
  <p>I want to apply other dataframe and remove rows containing user_ids from filter_user and that is why applying the above function to other dataframe</p>
  <pre><code>calls.apply(new,axis=1)
  </code></pre>
  <p>AttributeError: 'Series' object has no attribute 'query'
  Why is this error coming?</p>