Skip to content

Commit 5286426

Browse files
committed
♻️ comply with new pandas index handling
1 parent 05b252c commit 5286426

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plotly_resampler/figure_resampler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def check_update_trace_data(
186186
hf_series: pd.Series = hf_trace_data["hf_series"]
187187
start = hf_series.index[0] if start is None else start
188188
end = hf_series.index[-1] if end is None else end
189-
if isinstance(hf_series.index, (pd.Int64Index, pd.UInt64Index)):
189+
if hf_series.index.is_integer():
190190
start = round(start)
191191
end = round(end)
192192

@@ -516,7 +516,7 @@ def add_trace(
516516
if isinstance(hf_y, pd.Series)
517517
else hf_y
518518
)
519-
hf_y = np.asarray(hf_y)
519+
# hf_y = np.asarray(hf_y)
520520

521521
# Note: "hovertext" takes precedence over "text"
522522
hf_hovertext = (

0 commit comments

Comments
 (0)