Skip to content

Commit fb422d3

Browse files
committed
Bring back resolution definitions and move whatnew to 0.20
1 parent 47723c3 commit fb422d3

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

doc/source/whatsnew/v0.19.1.txt

-1
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,3 @@ Bug Fixes
8181

8282
- Bug in ``pd.pivot_table`` may raise ``TypeError`` or ``ValueError`` when ``index`` or ``columns``
8383
is not scalar and ``values`` is not specified (:issue:`14380`)
84-
- Bug in multiple offset aliases with decimal points regarded as ints (e.g. 0.5s as 5s) (:issue:`8419`)

doc/source/whatsnew/v0.20.0.txt

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ New features
3030
Other enhancements
3131
^^^^^^^^^^^^^^^^^^
3232

33+
- Multiple offset aliases with decimal points no longer regarded as ints (e.g. 0.5s as 5s) (:issue:`8419`)
3334

3435

3536

pandas/tseries/frequencies.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,12 @@ class FreqGroup(object):
4949

5050
class Resolution(object):
5151

52-
# defined in period.pyx
53-
# note that these are different from freq codes
54-
RESOS = [RESO_NS, RESO_US, RESO_MS, RESO_SEC, RESO_MIN, RESO_HR, RESO_DAY]
52+
RESO_US = RESO_US
53+
RESO_MS = RESO_MS
54+
RESO_SEC = RESO_SEC
55+
RESO_MIN = RESO_MIN
56+
RESO_HR = RESO_HR
57+
RESO_DAY = RESO_DAY
5558

5659
_reso_str_map = {
5760
RESO_NS: 'nanosecond',

0 commit comments

Comments
 (0)