pydata/pandas — pull request #7735 by sinhrks (2014-07-12 11:54:36+00:00)
Title: BUG: DTI.value_counts doesnt preserve tz

Found 2 problems related to ``value_counts``.

1. ``DatetimeIndex.value_counts`` loses tz.
```
didx = pd.date_range('2011-01-01 09:00', freq='H', periods=3, tz='Asia/Tokyo')
print(didx.value_counts())
# 2011-01-01 00:00:00 1
# 2011-01-01 01:00:00 1
# 2011-01-01 02:00:00 1
# dtype: int64
```
2. ``PeriodIndex.value_counts`` results in ``Int64Index``, and unable to drop ``NaT``.
```
pidx = pd.PeriodIndex(['2011-01-01 09:00', '2011-01-01 10:00', pd.NaT], freq='H')
print(pidx.value_counts())
# 359410 1
# 359409 1
# -9223372036854775808 1
# dtype: int64
```