Title: Feature request: Bypass dataframes · Issue #85 · plotly/plotly_express · GitHub
Open Graph Title: Feature request: Bypass dataframes · Issue #85 · plotly/plotly_express
X Title: Feature request: Bypass dataframes · Issue #85 · plotly/plotly_express
Description: Thanks for this fantastic package! I'm wondering if in the spirit of this package being useful for creating exploratory graphs with minimum boilerplate, it makes sense to be able to pass in arrays in lieu of dataframe column names for th...
Open Graph Description: Thanks for this fantastic package! I'm wondering if in the spirit of this package being useful for creating exploratory graphs with minimum boilerplate, it makes sense to be able to pass in arrays ...
X Description: Thanks for this fantastic package! I'm wondering if in the spirit of this package being useful for creating exploratory graphs with minimum boilerplate, it makes sense to be able to pass in arr...
Opengraph URL: https://github.com/plotly/plotly_express/issues/85
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature request: Bypass dataframes","articleBody":"Thanks for this fantastic package!\r\n\r\nI'm wondering if in the spirit of this package being useful for creating exploratory graphs with minimum boilerplate, it makes sense to be able to pass in arrays in lieu of dataframe column names for the plotting function fields.\r\n\r\neg, let\r\n\r\n```python\r\npx.scatter(x=[1,2],y=[3,4])\r\n```\r\n\r\nbe equivalent to\r\n\r\n```python\r\ndf=pandas.DataFrame({'x': [1,2], 'y': [3,4]})\r\npx.scatter(df, x='x', y='y')\r\n```\r\n\r\nWith the current Plotly API, I think the simplest alternative is \r\n\r\n```python\r\nfrom plotly import graph_objs as go\r\nplot([go.Scatter(x=[1,2],y=[3,4])])\r\n```\r\n\r\nwhich feels verbose compared to the `px` alternative mentioned above and which would require a complete refactor if I decide my data has become rich enough that I want to start using a dataframe-based representation.\r\n\r\nAs it stands, the necessity of constructing a dataframe can actually make plotly express *more* vebose than using `plotly` directly. It would be great for `px` to be the one-shop-stop package for exploratory plotting in Python. \r\n\r\nSeaborn, which is stated as an inspiration for this package, does support this syntax for the majority of its plotting functions.\r\n\r\nThanks!","author":{"url":"https://github.com/malmaud","@type":"Person","name":"malmaud"},"datePublished":"2019-05-15T17:52:30Z","url":"https://github.com/plotly/plotly_express/issues/85"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4a1d12e1-c4ca-fe2c-89cd-8afca0155cd5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC04:95C88:14BAA78:1B6F1B9:6B0126DB |
| html-safe-nonce | 4629e7dd785af1ad0482c767c3e622630a52e2b8fcf20ade084d737a9ce1d366 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzA0Ojk1Qzg4OjE0QkFBNzg6MUI2RjFCOTo2QjAxMjZEQiIsInZpc2l0b3JfaWQiOiIyNDMxNDYwMzMzMjg2NjYzODk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 01558860cd8799aac6ec583defb30f8a73788fd6e6e9c4868686972a282953c8 |
| hovercard-subject-tag | issue:444567659 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly_express/85/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ec880b7ef7dfce1fc573a7cb9711e5ae975e1afc4fde1b791e64e34dd6743a15/plotly/plotly_express/issues/85 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ec880b7ef7dfce1fc573a7cb9711e5ae975e1afc4fde1b791e64e34dd6743a15/plotly/plotly_express/issues/85 |
| og:image:alt | Thanks for this fantastic package! I'm wondering if in the spirit of this package being useful for creating exploratory graphs with minimum boilerplate, it makes sense to be able to pass in arrays ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | malmaud |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly_express git https://github.com/plotly/plotly_express.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 163366930 |
| octolytics-dimension-repository_nwo | plotly/plotly_express |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 163366930 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly_express |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width