DearPyGui icon indicating copy to clipboard operation
DearPyGui copied to clipboard

Feature Request

Open euler007 opened this issue 5 years ago • 11 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

  1. Direct pandas dataframe to table if possible

  2. Ability to integrate other charting libraries

  3. Embed specific web browser-based windows

Describe the solution you'd like A clear and concise description of what you want to happen.

  1. the ability to directly upload a pandas dataframe i.e, something like add_dataframe()

  2. Ability to integrate libraries such as matplotlib and plotly would really be helpful as a lot of code is already built onto them and it would be easier to just embed them

3)Ability to directly embed some browser-based widgets would be awesome

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

  1. Create smartlist classes and predefined functions for dataframe operations

  2. None

  3. None

Additional context Add any other context or screenshots about the feature request here.

euler007 avatar May 06 '21 13:05 euler007

I'd like 1 and 2 as well, but let's get version 0.7 out the door first.

I don't think 3 is feasible. A web engine is just too much to add on. However, in future DPG may be combined with other apps, such as OpenGL or Pygame. That may open up some possibilities...

DataExplorerUser avatar May 06 '21 15:05 DataExplorerUser

If DPG has a webview widget (like Qt, UIKit), browser-based “widgets” would be feasible

Aareon avatar May 06 '21 17:05 Aareon

Pandas dataframes imo should be supported

Aareon avatar May 06 '21 17:05 Aareon

Not sure I agree on adding a 3rd party support to a library that has minimal 3rd party outreach. Isn't the point to keep this slim?

I dont use pandas, so it would be extra weight and API weight for only a specific set of people.

I feel that is 100% the place for an extension outside the main library.

Why stop at pandas and not add support for numpy arrays and Django fields?

Amorano avatar May 06 '21 17:05 Amorano

@Amorano while I agree to your point that the aim is to keep the library slim, imo every person who ventures into learning data science is bombarded with pandas and since python has become the primary choice for data science it does in fact have maximum outreach. Django, not so much.

The number 1 problem all the above mentioned guys face is lack of visualisation. Which is why libraries like pandas gui exist. It would be awesome to have something like that integrated into one bundle like DPG. Therefore the feature request.

P.S: If you deal with data do give pandas a try <3

euler007 avatar May 06 '21 19:05 euler007

Why stop at pandas and not add support for numpy arrays and Django fields?

To me, the question is: what features will attract new users? I believe that science, engineering, data analysis are interesting potential user groups of DPG.

In addition, Pandas isn't just any random library and the functionality shouldn't take that much code. If it does, it could even be a separate module.

DataExplorerUser avatar May 06 '21 19:05 DataExplorerUser

Why stop at pandas and not add support for numpy arrays and Django fields?

To me, the question is: what features will attract new users? I believe that science, engineering, data analysis are interesting potential user groups of DPG.

In addition, Pandas isn't just any random library and the functionality shouldn't take that much code. If it does, it could even be a separate module.

Do all the things, just design it with intent. "Adapter Pattern" for all manner of other system's data blobs: Kibana, Django, Numpy, Pandas, etc...

Don't cart before horse, and single out something though, and make it core. That doesn't feel correct. That feels like a future hardcoded nightmare when you realize, oh dang, we could have planned for someone using XYZ......

BTW, PANDAS frames are using NUMPY arrays underneath. Isn't also DPG? Why not expose that API (NUMPY) to us as a first class citizen first, if it's in the core?

Amorano avatar May 06 '21 21:05 Amorano

I truly don’t think implementing Pandas dataframes in DPG would be all that hefty, and I think it’s wise for the library to integrate well with libraries that are so commonly used (pandas, opencv, numpy) is high priority. Nobody wants to implement rendering dataframes in a brand new graphics lib. Good if it just works.

Aareon avatar May 06 '21 22:05 Aareon

I don't think DPG uses NumPy, for one thing because the aim is to have minimal dependencies.

If you look at DPG as a desktop GUI alternative to a Jupyter notebook, then providing some integration with Pandas and possibly other tools makes sense. I don't see people complaining that they can show a dataframe in a notebook. It's a given that you can.

DataExplorerUser avatar May 07 '21 07:05 DataExplorerUser

what is wrong with using optional dependencies? I use libraries (like EasySettings) that have options to use TOML, YAML, json... but you don't NEED PyYAML installed if you are not utilizing the YAML functionality. Couldn't this be an option?

tollis-hunt avatar May 21 '21 01:05 tollis-hunt

Some of this will come after 0.7 is released. Numpy has been supported (partially) for a while.

hoffstadt avatar May 21 '21 19:05 hoffstadt