-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Rounding errors when parsing timedeltas #12690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
you can try that, though might break other things. |
4 tasks
Closing in favor of #14156 |
jreback
pushed a commit
that referenced
this issue
May 21, 2018
jorisvandenbossche
pushed a commit
to jorisvandenbossche/pandas
that referenced
this issue
Jun 8, 2018
…s-dev#12690) (pandas-dev#19732) (cherry picked from commit 81358e8)
jorisvandenbossche
pushed a commit
that referenced
this issue
Jun 9, 2018
david-liu-brattle-1
pushed a commit
to david-liu-brattle-1/pandas
that referenced
this issue
Jun 18, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found this while working on #12136.
Rounding errors occur for timedeltas initialized using fractional microsecond values:
Additionally, precision is lost when initializing timedeltas with fractional millisecond (and probably second) values:
I believe the problem is here: https://github.com/pydata/pandas/blob/288059adfb751d52be57e444198198518d256c05/pandas/tslib.pyx#L3399
bumping up the values of
p
should probably solve this.output of
pd.show_versions()
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0+unknown
nose: 1.3.7
pip: 8.1.0
setuptools: 20.2.2
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.17.0
statsmodels: None
xarray: None
IPython: 4.1.2
sphinx: 1.3.5
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.4.6
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.8.4
lxml: 3.5.0
bs4: 4.3.2
html5lib: 0.999
httplib2: None
apiclient: None
sqlalchemy: 1.0.12
pymysql: 0.6.7.None
psycopg2: None
jinja2: 2.8
boto: None
The text was updated successfully, but these errors were encountered: