Skip to content

Commit

Permalink
Fix pandas warning regarding API change
Browse files Browse the repository at this point in the history
  • Loading branch information
alubbock committed Aug 23, 2019
1 parent d30a3b1 commit 2eedd9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thunor/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@ def plotly_to_dataframe(plot_fig):
series.append(pd.Series(yvals, index=xvals, name=trace_name))

try:
return pd.concat(series, axis=1)
return pd.concat(series, axis=1, sort=True)
except (ValueError, InvalidIndexError):
# At least one of the indices contains duplicates, so we'll have to
# fall back on a (slower) merge, rather than trying to
# concatentate them
# concatenate them
dflist = [pd.DataFrame(s) for s in series]
return reduce(lambda x, y: pd.merge(x, y, left_index=True,
right_index=True, how='outer'),
Expand Down

0 comments on commit 2eedd9e

Please sign in to comment.