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

ValueError: cannot reindex from a duplicate axis #643

Open
maryammod opened this issue Jun 3, 2021 · 3 comments
Open

ValueError: cannot reindex from a duplicate axis #643

maryammod opened this issue Jun 3, 2021 · 3 comments
Labels
bug Something isn't working.

Comments

@maryammod
Copy link

App name

Description of bug

How to replicate the bug

Other notes

@maryammod maryammod added the bug Something isn't working. label Jun 3, 2021
@maryammod
Copy link
Author

Hi,
I am trying to run a sample heart app using aix360 and dash.
I run requirements files, faced an error that xgboost =1.02 doesn't match, I install it on my environment and then run the application.
"ValueError: cannot reindex from a duplicate axis" This error comes up after running "python app.py"
I'd appreciate it if you can guide me on what I am missing.
Thanks

@xhluca
Copy link
Collaborator

xhluca commented Jun 23, 2021

What OS are you using? If it's windows, have you tried using Windows Subsystem for Linux 2.0 (WSL2)?

Which version of Python are you using? The recommended version is Python 3.7, and pip v20.2. Both can be installed using conda.

Then you can use the following instructions:

To get started, first clone this repo:

git clone https://github.com/plotly/dash-sample-apps.git
cd dash-sample-apps/apps/dash-aix360-heart

Create and activate a conda env:

conda create -n dash-aix360-heart python=3.7.6
conda activate dash-aix360-heart

Or a venv (make sure your python3 is 3.6+):

python3 -m venv venv
source venv/bin/activate  # for Windows, use venv\Scripts\activate.bat

Install all the requirements:

pip install -r requirements.txt

You can now run the app:

python app.py

and visit http://127.0.0.1:8050/.

Let me know if you face the same xgboost error and the same duplicate axis error. Without the full error message it's difficult to know what issue you have with installing XGBoost. I'm also not able to reproduce the duplicate axis error, though with more details I might be able to reproduce it.

@xhluca
Copy link
Collaborator

xhluca commented Jun 23, 2021

For the above, you can run the following python code:

import platform
import sys
import pip

import dash
import plotly

print("Operating System (OS):", platform.system())
print("OS Release:", platform.release())
print("Python version:", sys.version)
print("Pip version:", pip.__version__)
print("Dash version:", dash.__version__)
print("Plotly version:", plotly.__version__)

And paste the output here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

2 participants