<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from io import StringIO
df = pd.read_csv(StringIO('''Date,A\n8/23/2017,a\n8/22/2017,b\n8/24/2017,c'''), parse_dates=['Date'])
print(df)
print(type(pd.datetime(2017, 8, 22).date()))
print(type(df['Date'][1]))
df_sub = df[df['Date'] == pd.datetime(2017, 8, 22).date()]
"><pre class="notranslate"><code class="notranslate">from io import StringIO
df = pd.read_csv(StringIO('''Date,A\n8/23/2017,a\n8/22/2017,b\n8/24/2017,c'''), parse_dates=['Date'])
print(df)
print(type(pd.datetime(2017, 8, 22).date()))
print(type(df['Date'][1]))
df_sub = df[df['Date'] == pd.datetime(2017, 8, 22).date()]

</code></pre></div>
<h4 dir="auto">Error returned</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
  File &quot;&lt;pyshell#72&gt;&quot;, line 1, in &lt;module&gt;
    df_sub = df[df['Date'] == pd.datetime(2017, 8, 22).date()]
  File &quot;C:\Python35\lib\site-packages\pandas\core\ops.py&quot;, line 877, in wrapper
    res = na_op(values, other)
  File &quot;C:\Python35\lib\site-packages\pandas\core\ops.py&quot;, line 806, in na_op
    y = libindex.convert_scalar(x, _values_from_object(y))
  File &quot;pandas\_libs\index.pyx&quot;, line 494, in pandas._libs.index.convert_scalar
  File &quot;pandas\_libs\index.pyx&quot;, line 509, in pandas._libs.index.convert_scalar
ValueError: cannot set a Timestamp with a non-timestamp"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
  File "&lt;pyshell#72&gt;", line 1, in &lt;module&gt;
    df_sub = df[df['Date'] == pd.datetime(2017, 8, 22).date()]
  File "C:\Python35\lib\site-packages\pandas\core\ops.py", line 877, in wrapper
    res = na_op(values, other)
  File "C:\Python35\lib\site-packages\pandas\core\ops.py", line 806, in na_op
    y = libindex.convert_scalar(x, _values_from_object(y))
  File "pandas\_libs\index.pyx", line 494, in pandas._libs.index.convert_scalar
  File "pandas\_libs\index.pyx", line 509, in pandas._libs.index.convert_scalar
ValueError: cannot set a Timestamp with a non-timestamp
</code></pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">I just upgraded to pandas version '0.21.0rc1'. The <code class="notranslate">df_sub</code> line above used to work in a prior version. Should a <code class="notranslate">Timestamp</code> and a <code class="notranslate">datetime.date</code> be comparable like it used to in a previous version? Not a huge issue for me but my intent is to just report it in-case it requires attention.</p>
<h4 dir="auto">Expected Output</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="        Date  A
1 2017-08-22  b"><pre class="notranslate"><code class="notranslate">        Date  A
1 2017-08-22  b
</code></pre></div>
<h4 dir="auto">Helpful Links</h4>
<p dir="auto">May be a similar or related issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="268127467" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/17965" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/17965/hovercard" href="https://github.com/pandas-dev/pandas/issues/17965">#17965</a><br>
<code class="notranslate">convert_scalar</code> location: <a href="https://github.com/pandas-dev/pandas/blob/master/pandas/_libs/index.pyx#L494">https://github.com/pandas-dev/pandas/blob/master/pandas/_libs/index.pyx#L494</a></p>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
<h2 dir="auto">[paste the output of <code class="notranslate">pd.show_versions()</code> here below this line]<br>
INSTALLED VERSIONS</h2>
<p dir="auto">commit: None<br>
python: 3.5.2.final.0<br>
python-bits: 64<br>
OS: Windows<br>
OS-release: 7<br>
machine: AMD64<br>
processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: None<br>
LOCALE: English_United States.1252</p>
<p dir="auto">pandas: 0.21.0rc1<br>
pytest: None<br>
pip: 9.0.1<br>
setuptools: 20.10.1<br>
Cython: 0.25.2<br>
numpy: 1.13.3<br>
scipy: 0.19.1<br>
pyarrow: None<br>
xarray: None<br>
IPython: 5.2.2<br>
sphinx: None<br>
patsy: 0.4.1<br>
dateutil: 2.6.1<br>
pytz: 2017.2<br>
blosc: None<br>
bottleneck: None<br>
tables: 3.3.0<br>
numexpr: 2.6.2<br>
feather: None<br>
matplotlib: 2.0.0rc2<br>
openpyxl: None<br>
xlrd: 1.0.0<br>
xlwt: None<br>
xlsxwriter: 0.9.6<br>
lxml: None<br>
bs4: 4.5.3<br>
html5lib: 0.9999999<br>
sqlalchemy: 1.1.11<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: 2.9.5<br>
s3fs: None<br>
fastparquet: None<br>
pandas_gbq: None<br>
pandas_datareader: None</p>
</details>
<p dir="auto">This should probably work</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [16]: df = pd.DataFrame({'A':[pd.Timestamp('20130101'), np.nan]})

In [17]: df
Out[17]: 
           A
0 2013-01-01
1        NaT

In [18]: pd.Timestamp('20130101').to_pydatetime()&gt;=df.A
Out[18]: 
0     True
1    False
Name: A, dtype: bool

In [20]: pd.Timestamp('20130101').to_pydatetime().date()&gt;=df.A
ValueError: cannot set a Timestamp with a non-timestamp"><pre class="notranslate"><code class="notranslate">In [16]: df = pd.DataFrame({'A':[pd.Timestamp('20130101'), np.nan]})

In [17]: df
Out[17]: 
           A
0 2013-01-01
1        NaT

In [18]: pd.Timestamp('20130101').to_pydatetime()&gt;=df.A
Out[18]: 
0     True
1    False
Name: A, dtype: bool

In [20]: pd.Timestamp('20130101').to_pydatetime().date()&gt;=df.A
ValueError: cannot set a Timestamp with a non-timestamp
</code></pre></div>