Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Automatically handle dataframe inputs for creating graphics #395

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

Open
kushalkolar opened this issue Dec 12, 2023 · 3 comments
Open

Automatically handle dataframe inputs for creating graphics #395

kushalkolar opened this issue Dec 12, 2023 · 3 comments

Comments

@kushalkolar
Copy link
Member

Very early idea, inspired by @gviejo πŸ˜„ and #394

Seaborn allows creating plots using dataframes. We could offer a similar high-level API (even higher level than fastplotlib already is) where dataframes are used as inputs, and the columns for the actual data to plot are specified (xs, ys, zs, etc.), and it automatically creates labels, legends etc. based on this.

Early thoughts:

  1. Do we want to do this?
  2. Does this belong in the Graphics API? I am kind of leaning towards it belonging in a higher level API - something between Graphics and widgets. @clewis7 your thoughts would be great here!
  3. Another reason why I think it belongs in a higher level API than Graphics is because we could offer things like kde plots which would be comprised of multiple graphics, and the graphics could be switchable (ScatterGraphic vs. HeatmapGraphic to represent the KDE).
  4. If we do this,
@gviejo
Copy link

gviejo commented Jan 9, 2024

What is point 4? I am dying of curiosity

@kushalkolar kushalkolar mentioned this issue Apr 13, 2024
67 tasks
@kszlim
Copy link

kszlim commented Mar 11, 2025

Would it make sense to support dataframes via narwhals and get basic support for most of the major dataframe libraries?

@kushalkolar
Copy link
Member Author

Would it make sense to support dataframes via narwhals and get basic support for most of the major dataframe libraries?

Thanks for sharing this, I hadn't heard about narwhals before! We'll certainly look into it when we get to this. Right now the priorities are to make the library feature complete w.r.t. the roadmap and then incorporating dataframes should be a matter of parsing and mapping buffers.

What is point 4? I am dying of curiosity

I fell asleep while writing this at 3AM over a year ago πŸ˜†

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants