Skip to content

Commit 56aaa78

Browse files
BelhsanHmidaFlix6x
andauthored
Update timely_beliefs/beliefs/classes.py
Co-authored-by: Felix Claessen <30658763+Flix6x@users.noreply.github.com>
1 parent fa433e7 commit 56aaa78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

timely_beliefs/beliefs/classes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ def most_common_event_frequency(self) -> timedelta | None:
12281228
"""
12291229
# If data is perfectly regular, reuse inferred frequency
12301230
freq = self.event_frequency
1231-
if freq is not None and not pd.isna(freq):
1231+
if not pd.isna(freq):
12321232
return freq
12331233

12341234
event_starts = pd.to_datetime(self.event_starts.unique())

0 commit comments

Comments
 (0)