<h4 dir="auto">Code to reproduce:</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="passes1 = '''&lt;html&gt;
&lt;head&gt;
&lt;title&gt;test&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;table&gt;
		&lt;tr&gt;
			&lt;td&gt;a&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/table&gt;
	&lt;table&gt;
		&lt;tr&gt;
			&lt;td&gt;b&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/table&gt;
	&lt;table&gt;
			&lt;td&gt;c&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;'''

passes2 = '''&lt;html&gt;
&lt;head&gt;
&lt;title&gt;test&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;table&gt;
			&lt;td&gt;a&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/table&gt;
	&lt;table&gt;
		&lt;tr&gt;
			&lt;td&gt;a&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/table&gt;
	&lt;table&gt;
		&lt;tr&gt;
			&lt;td&gt;b&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;'''

fails1 = '''&lt;html&gt;
&lt;head&gt;
&lt;title&gt;test&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;table&gt;
		&lt;tr&gt;
			&lt;td&gt;a&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/table&gt;
	&lt;table&gt;
		&lt;tr&gt;
			&lt;td&gt;a&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/table&gt;
	&lt;table&gt;
			&lt;td&gt;b&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;'''

fails2 = '''&lt;html&gt;
&lt;head&gt;
&lt;title&gt;test&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;table&gt;
			&lt;td&gt;a&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/table&gt;
	&lt;table&gt;
			&lt;td&gt;a&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/table&gt;
	&lt;table&gt;
		&lt;tr&gt;
			&lt;td&gt;b&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;'''

import pandas as pd

df_passes1 = pd.read_html(passes1, flavor='bs4')
print(&quot;passes1&quot;, df_passes1)

df_passes2 = pd.read_html(passes2, flavor='bs4')
print(&quot;passes2&quot;, df_passes2)

df_fails1 = pd.read_html(fails1, flavor='bs4')
print(&quot;fails1&quot;, df_fails1)

df_fails2 = pd.read_html(fails2, flavor='bs4')
print(&quot;fails2&quot;, df_fails2)"><pre class="notranslate"><span class="pl-s1">passes1</span> <span class="pl-c1">=</span> <span class="pl-s">'''&lt;html&gt;</span>
<span class="pl-s">&lt;head&gt;</span>
<span class="pl-s">&lt;title&gt;test&lt;/title&gt;</span>
<span class="pl-s">&lt;/head&gt;</span>
<span class="pl-s">&lt;body&gt;</span>
<span class="pl-s">	&lt;table&gt;</span>
<span class="pl-s">		&lt;tr&gt;</span>
<span class="pl-s">			&lt;td&gt;a&lt;/td&gt;</span>
<span class="pl-s">		&lt;/tr&gt;</span>
<span class="pl-s">	&lt;/table&gt;</span>
<span class="pl-s">	&lt;table&gt;</span>
<span class="pl-s">		&lt;tr&gt;</span>
<span class="pl-s">			&lt;td&gt;b&lt;/td&gt;</span>
<span class="pl-s">		&lt;/tr&gt;</span>
<span class="pl-s">	&lt;/table&gt;</span>
<span class="pl-s">	&lt;table&gt;</span>
<span class="pl-s">			&lt;td&gt;c&lt;/td&gt;</span>
<span class="pl-s">		&lt;/tr&gt;</span>
<span class="pl-s">	&lt;/table&gt;</span>
<span class="pl-s">&lt;/body&gt;</span>
<span class="pl-s">&lt;/html&gt;'''</span>

<span class="pl-s1">passes2</span> <span class="pl-c1">=</span> <span class="pl-s">'''&lt;html&gt;</span>
<span class="pl-s">&lt;head&gt;</span>
<span class="pl-s">&lt;title&gt;test&lt;/title&gt;</span>
<span class="pl-s">&lt;/head&gt;</span>
<span class="pl-s">&lt;body&gt;</span>
<span class="pl-s">	&lt;table&gt;</span>
<span class="pl-s">			&lt;td&gt;a&lt;/td&gt;</span>
<span class="pl-s">		&lt;/tr&gt;</span>
<span class="pl-s">	&lt;/table&gt;</span>
<span class="pl-s">	&lt;table&gt;</span>
<span class="pl-s">		&lt;tr&gt;</span>
<span class="pl-s">			&lt;td&gt;a&lt;/td&gt;</span>
<span class="pl-s">		&lt;/tr&gt;</span>
<span class="pl-s">	&lt;/table&gt;</span>
<span class="pl-s">	&lt;table&gt;</span>
<span class="pl-s">		&lt;tr&gt;</span>
<span class="pl-s">			&lt;td&gt;b&lt;/td&gt;</span>
<span class="pl-s">		&lt;/tr&gt;</span>
<span class="pl-s">	&lt;/table&gt;</span>
<span class="pl-s">&lt;/body&gt;</span>
<span class="pl-s">&lt;/html&gt;'''</span>

<span class="pl-s1">fails1</span> <span class="pl-c1">=</span> <span class="pl-s">'''&lt;html&gt;</span>
<span class="pl-s">&lt;head&gt;</span>
<span class="pl-s">&lt;title&gt;test&lt;/title&gt;</span>
<span class="pl-s">&lt;/head&gt;</span>
<span class="pl-s">&lt;body&gt;</span>
<span class="pl-s">	&lt;table&gt;</span>
<span class="pl-s">		&lt;tr&gt;</span>
<span class="pl-s">			&lt;td&gt;a&lt;/td&gt;</span>
<span class="pl-s">		&lt;/tr&gt;</span>
<span class="pl-s">	&lt;/table&gt;</span>
<span class="pl-s">	&lt;table&gt;</span>
<span class="pl-s">		&lt;tr&gt;</span>
<span class="pl-s">			&lt;td&gt;a&lt;/td&gt;</span>
<span class="pl-s">		&lt;/tr&gt;</span>
<span class="pl-s">	&lt;/table&gt;</span>
<span class="pl-s">	&lt;table&gt;</span>
<span class="pl-s">			&lt;td&gt;b&lt;/td&gt;</span>
<span class="pl-s">		&lt;/tr&gt;</span>
<span class="pl-s">	&lt;/table&gt;</span>
<span class="pl-s">&lt;/body&gt;</span>
<span class="pl-s">&lt;/html&gt;'''</span>

<span class="pl-s1">fails2</span> <span class="pl-c1">=</span> <span class="pl-s">'''&lt;html&gt;</span>
<span class="pl-s">&lt;head&gt;</span>
<span class="pl-s">&lt;title&gt;test&lt;/title&gt;</span>
<span class="pl-s">&lt;/head&gt;</span>
<span class="pl-s">&lt;body&gt;</span>
<span class="pl-s">	&lt;table&gt;</span>
<span class="pl-s">			&lt;td&gt;a&lt;/td&gt;</span>
<span class="pl-s">		&lt;/tr&gt;</span>
<span class="pl-s">	&lt;/table&gt;</span>
<span class="pl-s">	&lt;table&gt;</span>
<span class="pl-s">			&lt;td&gt;a&lt;/td&gt;</span>
<span class="pl-s">		&lt;/tr&gt;</span>
<span class="pl-s">	&lt;/table&gt;</span>
<span class="pl-s">	&lt;table&gt;</span>
<span class="pl-s">		&lt;tr&gt;</span>
<span class="pl-s">			&lt;td&gt;b&lt;/td&gt;</span>
<span class="pl-s">		&lt;/tr&gt;</span>
<span class="pl-s">	&lt;/table&gt;</span>
<span class="pl-s">&lt;/body&gt;</span>
<span class="pl-s">&lt;/html&gt;'''</span>

<span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>

<span class="pl-s1">df_passes1</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_html</span>(<span class="pl-s1">passes1</span>, <span class="pl-s1">flavor</span><span class="pl-c1">=</span><span class="pl-s">'bs4'</span>)
<span class="pl-en">print</span>(<span class="pl-s">"passes1"</span>, <span class="pl-s1">df_passes1</span>)

<span class="pl-s1">df_passes2</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_html</span>(<span class="pl-s1">passes2</span>, <span class="pl-s1">flavor</span><span class="pl-c1">=</span><span class="pl-s">'bs4'</span>)
<span class="pl-en">print</span>(<span class="pl-s">"passes2"</span>, <span class="pl-s1">df_passes2</span>)

<span class="pl-s1">df_fails1</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_html</span>(<span class="pl-s1">fails1</span>, <span class="pl-s1">flavor</span><span class="pl-c1">=</span><span class="pl-s">'bs4'</span>)
<span class="pl-en">print</span>(<span class="pl-s">"fails1"</span>, <span class="pl-s1">df_fails1</span>)

<span class="pl-s1">df_fails2</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_html</span>(<span class="pl-s1">fails2</span>, <span class="pl-s1">flavor</span><span class="pl-c1">=</span><span class="pl-s">'bs4'</span>)
<span class="pl-en">print</span>(<span class="pl-s">"fails2"</span>, <span class="pl-s1">df_fails2</span>)</pre></div>
<h4 dir="auto">Output:</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="passes1 [   0
0  a,    0
0  b,    0
0  c]
passes2 [   0
0  a,    0
0  a,    0
0  b]
fails1 [   0
0  a,    0
0  b]
fails2 [   0
0  a,    0
0  b]"><pre class="notranslate"><span class="pl-s1">passes1</span> [   <span class="pl-c1">0</span>
<span class="pl-c1">0</span>  <span class="pl-s1">a</span>,    <span class="pl-c1">0</span>
<span class="pl-c1">0</span>  <span class="pl-s1">b</span>,    <span class="pl-c1">0</span>
<span class="pl-c1">0</span>  <span class="pl-s1">c</span>]
<span class="pl-s1">passes2</span> [   <span class="pl-c1">0</span>
<span class="pl-c1">0</span>  <span class="pl-s1">a</span>,    <span class="pl-c1">0</span>
<span class="pl-c1">0</span>  <span class="pl-s1">a</span>,    <span class="pl-c1">0</span>
<span class="pl-c1">0</span>  <span class="pl-s1">b</span>]
<span class="pl-s1">fails1</span> [   <span class="pl-c1">0</span>
<span class="pl-c1">0</span>  <span class="pl-s1">a</span>,    <span class="pl-c1">0</span>
<span class="pl-c1">0</span>  <span class="pl-s1">b</span>]
<span class="pl-s1">fails2</span> [   <span class="pl-c1">0</span>
<span class="pl-c1">0</span>  <span class="pl-s1">a</span>,    <span class="pl-c1">0</span>
<span class="pl-c1">0</span>  <span class="pl-s1">b</span>]</pre></div>
<h4 dir="auto">Problem description:</h4>
<p dir="auto">Each of the html examples contain one or more missing <code class="notranslate">&lt;tr&gt;</code> tags. When identical tables and missing <code class="notranslate">&lt;tr&gt;</code> tag(s) are present in html, <code class="notranslate">read_table()</code> with bs4 and html5lib flavors produce inconsistent results. This results in duplicate tables getting dropped from the created dataframe as seen in fails1 and fails2. I expect their dataframe produced to be the same as passes2.</p>
<h4 dir="auto">Expected Output:</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="passes1 [   0
0  a,    0
0  b,    0
0  c]
passes2 [   0
0  a,    0
0  a,    0
0  b]
fails1 [   0
0  a,    0
0  a,    0
0  b]
fails2 [   0
0  a,    0
0  a,    0
0  b]"><pre class="notranslate"><span class="pl-s1">passes1</span> [   <span class="pl-c1">0</span>
<span class="pl-c1">0</span>  <span class="pl-s1">a</span>,    <span class="pl-c1">0</span>
<span class="pl-c1">0</span>  <span class="pl-s1">b</span>,    <span class="pl-c1">0</span>
<span class="pl-c1">0</span>  <span class="pl-s1">c</span>]
<span class="pl-s1">passes2</span> [   <span class="pl-c1">0</span>
<span class="pl-c1">0</span>  <span class="pl-s1">a</span>,    <span class="pl-c1">0</span>
<span class="pl-c1">0</span>  <span class="pl-s1">a</span>,    <span class="pl-c1">0</span>
<span class="pl-c1">0</span>  <span class="pl-s1">b</span>]
<span class="pl-s1">fails1</span> [   <span class="pl-c1">0</span>
<span class="pl-c1">0</span>  <span class="pl-s1">a</span>,    <span class="pl-c1">0</span>
<span class="pl-c1">0</span>  <span class="pl-s1">a</span>,    <span class="pl-c1">0</span>
<span class="pl-c1">0</span>  <span class="pl-s1">b</span>]
<span class="pl-s1">fails2</span> [   <span class="pl-c1">0</span>
<span class="pl-c1">0</span>  <span class="pl-s1">a</span>,    <span class="pl-c1">0</span>
<span class="pl-c1">0</span>  <span class="pl-s1">a</span>,    <span class="pl-c1">0</span>
<span class="pl-c1">0</span>  <span class="pl-s1">b</span>]</pre></div>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; pd.show_versions()

INSTALLED VERSIONS
------------------
commit: None
python: 3.6.1.final.0
python-bits: 64
OS: Darwin
OS-release: 16.7.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8

pandas: 0.20.3
pytest: None
pip: 9.0.1
setuptools: 36.2.7
Cython: None
numpy: 1.13.1
scipy: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.6.1
pytz: 2017.2
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 2.0.2
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: 3.8.0
bs4: 4.6.0
html5lib: 0.999999999
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
s3fs: None
pandas_gbq: None
pandas_datareader: None"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">pd</span>.<span class="pl-en">show_versions</span>()

<span class="pl-v">INSTALLED</span> <span class="pl-v">VERSIONS</span>
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span>
<span class="pl-s1">commit</span>: <span class="pl-c1">None</span>
<span class="pl-s1">python</span>: <span class="pl-c1">3.6</span>.<span class="pl-c1">1.</span><span class="pl-s1">final</span>.<span class="pl-c1">0</span>
<span class="pl-s1">python</span><span class="pl-c1">-</span><span class="pl-s1">bits</span>: <span class="pl-c1">64</span>
<span class="pl-v">OS</span>: <span class="pl-v">Darwin</span>
<span class="pl-v">OS</span><span class="pl-c1">-</span><span class="pl-s1">release</span>: <span class="pl-c1">16.7</span><span class="pl-c1">.0</span>
<span class="pl-s1">machine</span>: <span class="pl-s1">x86_64</span>
<span class="pl-s1">processor</span>: <span class="pl-s1">i386</span>
<span class="pl-s1">byteorder</span>: <span class="pl-s1">little</span>
<span class="pl-v">LC_ALL</span>: <span class="pl-c1">None</span>
<span class="pl-v">LANG</span>: <span class="pl-s1">en_US</span>.<span class="pl-v">UTF</span><span class="pl-c1">-</span><span class="pl-c1">8</span>
<span class="pl-v">LOCALE</span>: <span class="pl-s1">en_US</span>.<span class="pl-v">UTF</span><span class="pl-c1">-</span><span class="pl-c1">8</span>

<span class="pl-s1">pandas</span>: <span class="pl-c1">0.20</span>.<span class="pl-c1">3</span>
<span class="pl-s1">pytest</span>: <span class="pl-c1">None</span>
<span class="pl-s1">pip</span>: <span class="pl-c1">9.0</span>.<span class="pl-c1">1</span>
<span class="pl-s1">setuptools</span>: <span class="pl-c1">36.2</span>.<span class="pl-c1">7</span>
<span class="pl-v">Cython</span>: <span class="pl-c1">None</span>
<span class="pl-s1">numpy</span>: <span class="pl-c1">1.13</span>.<span class="pl-c1">1</span>
<span class="pl-s1">scipy</span>: <span class="pl-c1">None</span>
<span class="pl-s1">xarray</span>: <span class="pl-c1">None</span>
<span class="pl-v">IPython</span>: <span class="pl-c1">None</span>
<span class="pl-s1">sphinx</span>: <span class="pl-c1">None</span>
<span class="pl-s1">patsy</span>: <span class="pl-c1">None</span>
<span class="pl-s1">dateutil</span>: <span class="pl-c1">2.6</span>.<span class="pl-c1">1</span>
<span class="pl-s1">pytz</span>: <span class="pl-c1">2017.2</span>
<span class="pl-s1">blosc</span>: <span class="pl-c1">None</span>
<span class="pl-s1">bottleneck</span>: <span class="pl-c1">None</span>
<span class="pl-s1">tables</span>: <span class="pl-c1">None</span>
<span class="pl-s1">numexpr</span>: <span class="pl-c1">None</span>
<span class="pl-s1">feather</span>: <span class="pl-c1">None</span>
<span class="pl-s1">matplotlib</span>: <span class="pl-c1">2.0</span>.<span class="pl-c1">2</span>
<span class="pl-s1">openpyxl</span>: <span class="pl-c1">None</span>
<span class="pl-s1">xlrd</span>: <span class="pl-c1">None</span>
<span class="pl-s1">xlwt</span>: <span class="pl-c1">None</span>
<span class="pl-s1">xlsxwriter</span>: <span class="pl-c1">None</span>
<span class="pl-s1">lxml</span>: <span class="pl-c1">3.8</span>.<span class="pl-c1">0</span>
<span class="pl-s1">bs4</span>: <span class="pl-c1">4.6</span>.<span class="pl-c1">0</span>
<span class="pl-s1">html5lib</span>: <span class="pl-c1">0.999999999</span>
<span class="pl-s1">sqlalchemy</span>: <span class="pl-c1">None</span>
<span class="pl-s1">pymysql</span>: <span class="pl-c1">None</span>
<span class="pl-s1">psycopg2</span>: <span class="pl-c1">None</span>
<span class="pl-s1">jinja2</span>: <span class="pl-c1">None</span>
<span class="pl-s1">s3fs</span>: <span class="pl-c1">None</span>
<span class="pl-s1">pandas_gbq</span>: <span class="pl-c1">None</span>
<span class="pl-s1">pandas_datareader</span>: <span class="pl-c1">None</span></pre></div>
</details>
<p dir="auto">related <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="26262883" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/6066" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/6066/hovercard" href="https://github.com/pandas-dev/pandas/issues/6066">#6066</a> (on Float64Index too)</p>
<p dir="auto">The 'KeyError' on slicing was discussed multiple times but I'm still not sure if the issue below is a bug or just my misunderstanding.</p>
<p dir="auto">I'm experiencing 'KeyError' from time to time when I try to slice my dataframes with datetime or Timestamp objects, however slicing with strings works perfectly. I was unable to construct synthetic example with pandas.date_range, so I needed to upload the piece of real data where the issue appears:<br>
<a href="https://www.dropbox.com/s/ibzbwqs35tiydyc/tmp.h5" rel="nofollow">https://www.dropbox.com/s/ibzbwqs35tiydyc/tmp.h5</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="df = pd.read_hdf('tmp.h5', 'data')
print df.head()"><pre class="notranslate"><code class="notranslate">df = pd.read_hdf('tmp.h5', 'data')
print df.head()
</code></pre></div>
<p dir="auto">When I try to slice it with the pandas.Timestamp objects it results in 'KeyError':</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tt1 = pd.Timestamp('2006-11-16 18:30:00')
tt2 = pd.Timestamp('2006-11-16 18:40:00')
print df.ix[tt1:tt2].head()"><pre class="notranslate"><code class="notranslate">tt1 = pd.Timestamp('2006-11-16 18:30:00')
tt2 = pd.Timestamp('2006-11-16 18:40:00')
print df.ix[tt1:tt2].head()
</code></pre></div>
<p dir="auto">Same for datetime objects:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tt1 = pd.Timestamp('2006-11-16 18:30:00').to_datetime()
tt2 = pd.Timestamp('2006-11-16 18:40:00').to_datetime()
print df.ix[tt1:tt2].head()"><pre class="notranslate"><code class="notranslate">tt1 = pd.Timestamp('2006-11-16 18:30:00').to_datetime()
tt2 = pd.Timestamp('2006-11-16 18:40:00').to_datetime()
print df.ix[tt1:tt2].head()
</code></pre></div>
<p dir="auto">However this slicing works perfectly:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tt1 = pd.Timestamp('2006-11-16 18:30:00').strftime('%Y-%m-%d %H:%M:%S')
tt2 = pd.Timestamp('2006-11-16 18:40:00').strftime('%Y-%m-%d %H:%M:%S')
print df[tt1:tt2].head()"><pre class="notranslate"><code class="notranslate">tt1 = pd.Timestamp('2006-11-16 18:30:00').strftime('%Y-%m-%d %H:%M:%S')
tt2 = pd.Timestamp('2006-11-16 18:40:00').strftime('%Y-%m-%d %H:%M:%S')
print df[tt1:tt2].head()
</code></pre></div>
<p dir="auto">Numpy version 1.8.0<br>
Pandas version 0.13.0</p>