We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d36187d commit 3fdb2f6Copy full SHA for 3fdb2f6
1 file changed
harp/io.py
@@ -132,7 +132,12 @@ def _fromraw(
132
keep_type: bool = False,
133
):
134
if len(data) == 0:
135
- return pd.DataFrame(columns=columns, index=pd.Index([], dtype=np.float64, name="Time"))
+ return pd.DataFrame(
136
+ columns=columns,
137
+ index=pd.DatetimeIndex([], name="Time")
138
+ if epoch
139
+ else pd.Index([], dtype=np.float64, name="Time"),
140
+ )
141
142
if address is not None and address != data[2]:
143
raise ValueError(f"expected address {address} but got {data[2]}")
0 commit comments