Pandas.dataframe.query() - fetch not null rows (Pandas equivalent to SQL: "IS NOT NULL")
<p>I am fetching the rows with some values from a pandas dataframe with the following code. I need to convert this code to <code>pandas.query()</code>.</p>
<pre class="lang-py prettyprint-override"><code>results = rs_gp[rs_gp['Col1'].notnull()]
</code></pre>
<p>When I convert to:</p>
<pre class="lang-py prettyprint-override"><code>results = rs_gp.query('Col1!=None')
</code></pre>
<p>It gives me the error</p>
<pre><code>None is not defined
</code></pre>