Skip to content

Commit c65390f

Browse files
authored
Merge pull request #37 from predict-idlab/pandas_index
♻️ comply with new pandas index handling
2 parents 05b252c + 3826dd7 commit c65390f

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

@@ -293,7 +293,7 @@ def check_update_figure_dict(
293293
xaxis_filter_short = "x" + xaxis_filter.lstrip("xaxis")
294294

295295
if updated_trace_indices is None:
296-
updated_trace_indices = []
296+
updated_trace_indices = []
297297

298298
for idx, trace in enumerate(figure["data"]):
299299
# We skip when the trace-idx already has been updated.

0 commit comments

Comments
 (0)