We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70379e8 commit 156620eCopy full SHA for 156620e
pandas/tseries/frequencies.py
@@ -5,6 +5,7 @@
5
import numpy as np
6
7
from pandas._libs import lib
8
+from pandas.tseries.offsets import MonthBegin
9
from pandas._libs.algos import unique_deltas
10
from pandas._libs.tslibs import (
11
Timestamp,
@@ -504,9 +505,13 @@ def is_superperiod(source, target) -> bool:
504
505
"""
506
if target is None or source is None:
507
return False
508
+ original_source = to_offset(source)
509
source = _maybe_coerce_freq(source)
510
target = _maybe_coerce_freq(target)
511
512
+ if isinstance(original_source, MonthBegin) and target == 'D':
513
+ return False
514
+
515
if _is_annual(source):
516
if _is_annual(target):
517
return get_rule_month(source) == get_rule_month(target)
0 commit comments