Skip to content

value_counts() is changing dates #3194

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
ghost opened this issue Mar 27, 2013 · 2 comments
Closed

value_counts() is changing dates #3194

ghost opened this issue Mar 27, 2013 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 27, 2013

Code:

    print fl['TurnOnDate'].head()
    print 'dtype:'
    print fl['TurnOnDate'].dtype
    print fl['TurnOnDate'].value_counts().head()

Result:

2723 2003-10-01 00:00:00
2841 2011-08-01 00:00:00
2855 2004-12-01 00:00:00
2941 2010-08-01 00:00:00
3019 2005-11-01 00:00:00
Name: TurnOnDate
dtype:
datetime64[ns]
1970-01-23 00:00:00 4
1970-01-19 00:00:00 4
1970-01-21 00:00:00 2
1970-01-22 00:00:00 2
1970-01-20 08:00:00 2

@jreback
Copy link
Contributor

jreback commented Mar 27, 2013

this is fixed in 0.11 #3003

@ghost
Copy link
Author

ghost commented Mar 27, 2013

Thanks

@ghost ghost closed this as completed Mar 27, 2013
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant