Skip to content

Commit 77d045c

Browse files
Update rdtools/degradation.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 5280aaa commit 77d045c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rdtools/degradation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def _avg_timestamp_old_Pandas(dt, dt_left):
451451

452452
# conversion from dates to seconds since epoch (unix time)
453453
def to_unix(s):
454-
if type(s) is pd.Timestamp:
454+
if isinstance(s, pd.Timestamp):
455455
return calendar.timegm(s.timetuple())
456456
else:
457457
return pd.NaT

0 commit comments

Comments
 (0)