Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "ValueError: cannot reindex on an axis with duplicate labels" in CreateReport #1

Open
MartinaCasari opened this issue Jan 24, 2023 · 1 comment

Comments

@MartinaCasari
Copy link

Hello,
thank you very much for your library.
I've been capable of using it after some troubles.
At the time of creating the report, I receive the following message:

ValueError: cannot reindex on an axis with duplicate labels

In file and line:

File "[...]\sensortoolkit\plotting_performance_metrics.py", line 420, in performance_metrics
sns.swarmplot(x='Averaging Interval', y=metric_name,

I suggest putting a

stats_df.reset_index(inplace=True, drop=True)

before that line.

Best regards,
Martina Casari

@menaka-kumar
Copy link
Collaborator

menaka-kumar commented Feb 13, 2023

I believe this unfortunately does not solve the issue. The report generates; however, it is not accurate. I will work on trying to solve this issue in upcoming releases. However, a work around is to downgrade the following packages to the listed versions

  1. pandas==1.3.5
  2. seaborn==0.11.2

using pip install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants