Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions wfdb/io/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,13 +1014,13 @@ def to_dataframe(self) -> pd.DataFrame:
index = pd.date_range(
start=self.base_datetime,
periods=self.sig_len,
freq=pd.Timedelta(seconds=1 / self.fs),
end=self.get_absolute_time(self.sig_len - 1),
)
else:
index = pd.timedelta_range(
start=pd.Timedelta(0),
periods=self.sig_len,
freq=pd.Timedelta(seconds=1 / self.fs),
end=self.get_elapsed_time(self.sig_len - 1),
)

if self.p_signal is not None:
Expand Down