Skip to content

BUG: wrong type is returned by iat[] for date time series #7729

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

Closed
yonil7 opened this issue Jul 11, 2014 · 2 comments · Fixed by #8298
Closed

BUG: wrong type is returned by iat[] for date time series #7729

yonil7 opened this issue Jul 11, 2014 · 2 comments · Fixed by #8298
Labels
Bug Datetime Datetime data dtype Dtype Conversions Unexpected or buggy dtype conversions Indexing Related to indexing on series/frames, not to indexes themselves
Milestone

Comments

@yonil7
Copy link

yonil7 commented Jul 11, 2014

These return object of type class pandas.tslib.Timestamp:

    print type(pd.Series(['2014-01-01', '2014-02-02'], dtype='datetime64[ns]')[0])
    print type(pd.Series(['2014-01-01', '2014-02-02'], dtype='datetime64[ns]').min())

but using iat[] returns object of type type numpy.datetime64:

    print type(pd.Series(['2014-01-01', '2014-02-02'], dtype='datetime64[ns]').iat[0])
@jreback
Copy link
Contributor

jreback commented Jul 11, 2014

pls post pd.show_versions()

(this is a bug in any event), not boxing the return type

@jreback jreback added this to the 0.15.0 milestone Jul 11, 2014
@jreback jreback changed the title wrong type is returned by iat[] for date time series BUG: wrong type is returned by iat[] for date time series Jul 11, 2014
@yonil7
Copy link
Author

yonil7 commented Jul 11, 2014

INSTALLED VERSIONS

commit: None
python: 2.7.5.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None

pandas: 0.14.0
nose: 1.3.0
Cython: 0.19.1
numpy: 1.8.1
scipy: 0.14.0
statsmodels: 0.5.0
IPython: 1.0.0
sphinx: 1.1.3
patsy: 0.2.1
scikits.timeseries: None
dateutil: 2.2
pytz: 2014.4
bottleneck: 0.8.0
tables: 3.1.1
numexpr: 2.3.1
matplotlib: 1.3.1
openpyxl: 1.8.5
xlrd: 0.9.3
xlwt: 0.7.5
xlsxwriter: 0.5.5
lxml: 3.3.5
bs4: 4.3.1
html5lib: None
bq: None
apiclient: None
rpy2: None
sqlalchemy: 0.9.6
pymysql: None
psycopg2: None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Datetime Datetime data dtype Dtype Conversions Unexpected or buggy dtype conversions Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants