dash-sample-apps icon indicating copy to clipboard operation
dash-sample-apps copied to clipboard

ValueError: cannot reindex from a duplicate axis

Open maryammod opened this issue 5 years ago • 3 comments

App name

Description of bug

How to replicate the bug

Other notes

maryammod avatar Jun 03 '21 19:06 maryammod

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

maryammod avatar Jun 03 '21 19:06 maryammod

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 avatar Jun 23 '21 00:06 xhluca

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

xhluca avatar Jun 23 '21 01:06 xhluca