Skip to content

Commit 0c1e5ef

Browse files
committed
Fix deprecation warning
1 parent 4272c8d commit 0c1e5ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

timeflux_ui/nodes/ui.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,8 @@ def _to_dict(self, data):
268268
def _from_dict(self, data):
269269
try:
270270
data = pd.DataFrame.from_dict(data, orient="index")
271-
data.index = pd.to_datetime(data.index, unit="ms")
271+
print(data.index)
272+
data.index = pd.to_datetime(data.index.astype(np.float64), unit="ms")
272273
except ValueError:
273274
self.logger.warn("Invalid stream data")
274275
return None

0 commit comments

Comments
 (0)