<p dir="auto">pull request for the code  -  <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="233342440" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/16589" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/16589/hovercard?comment_id=41919702&amp;comment_type=review" href="https://github.com/pandas-dev/pandas/pull/16589#pullrequestreview-41919702">#16589 (review)</a></p>
<p dir="auto">This is the same problem as described in  <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="183419690" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/14440" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/14440/hovercard" href="https://github.com/pandas-dev/pandas/issues/14440">#14440</a> but with Timestamp, and the fix should be similar.</p>
<p dir="auto">Probable source of error:<br>
</p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/pandas-dev/pandas/blob/093aa8231eae92ff6cf7ef9564d62289b458aaff/pandas/tslib.pyx#L438">pandas/pandas/tslib.pyx</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 438
      in
      <a data-pjax="true" class="commit-tease-sha" href="/pandas-dev/pandas/commit/093aa8231eae92ff6cf7ef9564d62289b458aaff">093aa82</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L438" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="438"></td>
          <td id="LC438" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> result <span class="pl-k">=</span> Timestamp(unit <span class="pl-k">*</span> rounder(value <span class="pl-k">/</span> <span class="pl-k">float</span>(unit)), <span class="pl-smi">unit</span><span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">'</span>ns<span class="pl-pds">'</span></span>) </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>
<h4 dir="auto">A small, complete example of the issue</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [1] import pandas as pd
In [2]: ts=pd.Timestamp('2016-03-06 18:43:45.950000')
In [3]: ts.floor('10L')
Out [3]: Timestamp('2016-03-06 18:43:45.950000128')  "><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">1</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-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-s1">ts</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s">'2016-03-06 18:43:45.950000'</span>)
<span class="pl-v">In</span> [<span class="pl-c1">3</span>]: <span class="pl-s1">ts</span>.<span class="pl-en">floor</span>(<span class="pl-s">'10L'</span>)
<span class="pl-v">Out</span> [<span class="pl-c1">3</span>]: <span class="pl-v">Timestamp</span>(<span class="pl-s">'2016-03-06 18:43:45.950000128'</span>)  </pre></div>
<h4 dir="auto">Expected Output</h4>
<p dir="auto">Timestamp('2016-03-06 18:43:45.950000')</p>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<h2 dir="auto">INSTALLED VERSIONS</h2>
<p dir="auto">commit: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pandas-dev/pandas/commit/093aa8231eae92ff6cf7ef9564d62289b458aaff/hovercard" href="https://github.com/pandas-dev/pandas/commit/093aa8231eae92ff6cf7ef9564d62289b458aaff"><tt>093aa82</tt></a><br>
python: 2.7.6.final.0<br>
python-bits: 64<br>
OS: Linux<br>
OS-release: 3.16.0-46-generic<br>
machine: x86_64<br>
processor: x86_64<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: en_US.UTF-8<br>
LOCALE: None.None</p>
<p dir="auto">pandas: 0.19.0+63.g093aa82<br>
nose: 1.3.7<br>
pip: 9.0.0<br>
setuptools: 28.7.1<br>
Cython: 0.25.1<br>
numpy: 1.11.2<br>
scipy: None<br>
statsmodels: None<br>
xarray: None<br>
IPython: 5.1.0<br>
sphinx: None<br>
patsy: None<br>
dateutil: 2.5.3<br>
pytz: 2016.7<br>
blosc: None<br>
bottleneck: None<br>
tables: None<br>
numexpr: None<br>
matplotlib: None<br>
openpyxl: None<br>
xlrd: None<br>
xlwt: None<br>
xlsxwriter: None<br>
lxml: None<br>
bs4: None<br>
html5lib: None<br>
httplib2: None<br>
apiclient: None<br>
sqlalchemy: None<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: None<br>
boto: None<br>
pandas_datareader: None</p>