Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mesca committed Aug 15, 2023
1 parent b6878eb commit 4272c8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion timeflux_ui/nodes/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,9 @@ def _to_dict(self, data):
# probably impacting memory. This should be investigated further.
# See: https://stackoverflow.com/questions/20625582/how-to-deal-with-settingwithcopywarning-in-pandas
data = data.copy() # Remove?
data["index"] = (data.index.values.astype("datetime64[ns]").astype(np.float64) / 1e6).astype(
data["index"] = (
data.index.values.astype("datetime64[ns]").astype(np.float64) / 1e6
).astype(
np.int64
) # from ns to ms
data.drop_duplicates(
Expand Down

0 comments on commit 4272c8d

Please sign in to comment.