Skip to content

ValueError: cannot reindex from a duplicate axis #643

Description

@maryammod

App name

Description of bug

How to replicate the bug

Other notes

Activity

  1. maryammod commented on Jun 3, 2021

    @maryammod
    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

  2. xhluca commented on Jun 23, 2021

    @xhluca

    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.

  3. xhluca commented on Jun 23, 2021

    @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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogbugsomething broken

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions