Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork19.4k
Closed
Labels
Milestone
Description
frompandasimportDataFramefromnumpyimportdatetime64data= ['2015-02-03','2015-02-07']data=DataFrame(data,dtype=datetime64)data.diff().median()
This code returns
0-53374days+00:06:21.572612dtype:timedelta64[ns]
while I would expect it to return the same as data.diff().mean()
04daysdtype:timedelta64[ns]
Here is my setup
INSTALLEDVERSIONS------------------commit:Nonepython:2.7.6.final.0python-bits:64OS:DarwinOS-release:14.4.0machine:x86_64processor:i386byteorder:littleLC_ALL:NoneLANG:en_GB.UTF-8pandas:0.16.0nose:1.3.4Cython:Nonenumpy:1.9.2scipy:0.14.0statsmodels:NoneIPython:2.3.1sphinx:Nonepatsy:Nonedateutil:2.4.2pytz:2015.2bottleneck:Nonetables:Nonenumexpr:Nonematplotlib:1.4.2openpyxl:2.1.3xlrd:0.9.3xlwt:0.7.5xlsxwriter:Nonelxml:Nonebs4:4.3.2html5lib:Nonehttplib2:Noneapiclient:Nonesqlalchemy:Nonepymysql:Nonepsycopg2:2.5.4 (dtdecpq3ext)