Giter Club home page Giter Club logo

Comments (3)

tommyod avatar tommyod commented on June 14, 2024

Looks like an error related to numba, not paretoset.

  • Can you import numba without getting an error?
  • What are the versions?

from paretoset.

ZAINEBCHELLY avatar ZAINEBCHELLY commented on June 14, 2024

Thanks! I have solved irt.
But I encountered another problem:
Now, I can run the code but I do not have any visualizations (no displayed results)
For instance, for the first cell, I had to add print(mask) and print(paretoset_hotels) to see the results:


from paretoset import paretoset
import pandas as pd

hotels = pd.DataFrame({"price": [50, 53, 62, 87, 83, 39, 60, 44],
"distance_to_beach": [13, 21, 19, 13, 5, 22, 22, 25]})
mask = paretoset(hotels, sense=["min", "min"])
print(mask)
paretoset_hotels = hotels[mask]
print(paretoset_hotels)


Results:
[ True False False False True True False False]
price distance_to_beach
0 50 13
4 83 5
5 39 22

How can I print the graphs?
Thank you.

from paretoset.

tommyod avatar tommyod commented on June 14, 2024

You need to use a plotting library such as "matplotlib". I don't have time or capacity to help you with this. I will close this as plotting is not a problem related to this package. Check out e.g. reddit or stackoverflow or discord to get help with Python and data analysis in general. Best of luck!

from paretoset.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.