Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
BUG: DTI.value_counts doesnt preserve tz #7735
Conversation
jreback
and 1 other
commented on an outdated diff
Jul 12, 2014
| @@ -186,6 +186,8 @@ def value_counts(values, sort=True, ascending=False, normalize=False, | ||
| convenience for pd.cut, only works with numeric data | ||
| dropna : boolean, default True | ||
| Don't include counts of NaN | ||
| + has_inat : boolean, default False | ||
| + Handle int dtype as datetime representation and remove iNaT using dropna |
jreback
Contributor
|
|
better |
sinhrks
referenced
this pull request
Jul 12, 2014
Open
INT: mixin for PeriodIndex / Datetimeindex for common methods #6469
jreback
added Bug Timezones Numeric
labels
Jul 14, 2014
jreback
added this to the
0.15.0
milestone
Jul 14, 2014
|
rebase this |
|
@sinhrks pls rebase |
|
@jreback Rebased. |
|
can you run a perf test on this? |
|
Attached.
|
|
yep, agreed. ping when green |
|
@jreback Now green |
jreback
and 1 other
commented on an outdated diff
Jul 25, 2014
| @@ -544,3 +544,20 @@ def _add_delta(self, other): | ||
| return NotImplemented | ||
| + def value_counts(self, normalize=False, sort=True, ascending=False, |
jreback
Contributor
|
|
perfect, ping when green |
jreback
added a commit
that referenced
this pull request
Jul 25, 2014
|
|
jreback |
a23c6c7
|
jreback
merged commit a23c6c7
into pandas-dev:master
Jul 25, 2014
1 check passed
continuous-integration/travis-ci
The Travis CI build passed
Details
sinhrks
deleted the
sinhrks:value_counts_tz branch
Jul 26, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sinhrks commentedJul 12, 2014
Found 2 problems related to
value_counts.DatetimeIndex.value_countsloses tz.PeriodIndex.value_countsresults inInt64Index, and unable to dropNaT.