You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BUG: Mixed period cannot be displayed with ValueError
we can create Series contains Periods with mixed freq
s = pd.Series([pd.Period('2011-01', freq='M'), pd.Period('2011-02-01', freq='D')])
ValueError: Input has different freq=D
Author: sinhrks <[email protected]>
Closespandas-dev#12615 from sinhrks/period_format and squashes the following commits:
a107294 [sinhrks] BUG: Mixed period cannot be displayed
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.18.1.txt
+2-3
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ Enhancements
44
44
API changes
45
45
~~~~~~~~~~~
46
46
47
-
47
+
- ``Period`` and ``PeriodIndex`` now raises ``IncompatibleFrequency`` error which inherits ``ValueError`` rather than raw ``ValueError`` (:issue:`12615`)
48
48
49
49
50
50
@@ -91,6 +91,7 @@ Bug Fixes
91
91
~~~~~~~~~
92
92
93
93
- Bug in ``Period`` and ``PeriodIndex`` creation raises ``KeyError`` if ``freq="Minute"`` is specified. Note that "Minute" freq is deprecated in v0.17.0, and recommended to use ``freq="T"`` instead (:issue:`11854`)
94
+
- Bug in printing data which contains ``Period`` with different ``freq`` raises ``ValueError`` (:issue:`12615`)
94
95
- Bug in ``Series`` construction with ``Categorical`` and ``dtype='category'`` is specified (:issue:`12574`)
95
96
96
97
@@ -101,7 +102,6 @@ Bug Fixes
101
102
102
103
103
104
104
-
105
105
- Bug in ``value_counts`` when ``normalize=True`` and ``dropna=True`` where nulls still contributed to the normalized count (:issue:`12558`)
106
106
- Bug in ``Panel.fillna()`` ignoring ``inplace=True`` (:issue:`12633`)
107
107
- Bug in ``Series.rename``, ``DataFrame.rename`` and ``DataFrame.rename_axis`` not treating ``Series`` as mappings to relabel (:issue:`12623`).
@@ -135,5 +135,4 @@ Bug Fixes
135
135
136
136
137
137
138
-
139
138
- Bug in ``pivot_table`` when ``margins=True`` and ``dropna=True`` where nulls still contributed to margin count (:issue:`12577`)
0 commit comments