Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 251f184

Browse files
committedMar 20, 2025·
BUG: Collision between equivalent frequencies 'QS-FEB' and 'QS-NOV'
1 parent 6bb7366 commit 251f184

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎pandas/core/arrays/datetimelike.py

+2
Original file line numberDiff line numberDiff line change
@@ -2538,6 +2538,7 @@ def _validate_inferred_freq(freq, inferred_freq):
25382538
"values does not conform to passed frequency "
25392539
f"{freq.freqstr}"
25402540
)
2541+
return freq
25412542
if (
25422543
hasattr(offset1, "n")
25432544
and hasattr(offset2, "n")
@@ -2548,6 +2549,7 @@ def _validate_inferred_freq(freq, inferred_freq):
25482549
"values does not conform to passed frequency "
25492550
f"{freq.freqstr}"
25502551
)
2552+
return freq
25512553
raise ValueError(
25522554
f"Inferred frequency {inferred_freq} from passed "
25532555
"values does not conform to passed frequency "

0 commit comments

Comments
 (0)
Please sign in to comment.