Title: px.timeline() setting text to end column displays duration · Issue #3019 · plotly/plotly.py · GitHub
Open Graph Title: px.timeline() setting text to end column displays duration · Issue #3019 · plotly/plotly.py
X Title: px.timeline() setting text to end column displays duration · Issue #3019 · plotly/plotly.py
Description: Broken off of #2934... Here the text will be the computed delta value because PX rewrites the data frame and reuses the column name Finish for x: import plotly.express as px import pandas as pd df = pd.DataFrame([ dict(Task="Job A", Star...
Open Graph Description: Broken off of #2934... Here the text will be the computed delta value because PX rewrites the data frame and reuses the column name Finish for x: import plotly.express as px import pandas as pd df ...
X Description: Broken off of #2934... Here the text will be the computed delta value because PX rewrites the data frame and reuses the column name Finish for x: import plotly.express as px import pandas as pd df ...
Opengraph URL: https://github.com/plotly/plotly.py/issues/3019
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"px.timeline() setting text to end column displays duration ","articleBody":"Broken off of https://github.com/plotly/plotly.py/issues/2934... Here the text will be the computed delta value because PX rewrites the data frame and reuses the column name `Finish` for `x`:\r\n\r\n```python\r\nimport plotly.express as px\r\nimport pandas as pd\r\n\r\ndf = pd.DataFrame([\r\n dict(Task=\"Job A\", Start='2009-01-01', Finish='2009-02-28', Resource=\"Alex\"),\r\n dict(Task=\"Job B\", Start='2009-03-05', Finish='2009-04-15', Resource=\"Alex\"),\r\n dict(Task=\"Job C\", Start='2009-02-20', Finish='2009-05-30', Resource=\"Max\")\r\n])\r\nfig = px.timeline(df, x_start=\"Start\", x_end=\"Finish\", y=\"Task\", text=\"Finish\")\r\nfig.update_yaxes(autorange=\"reversed\")\r\nfig.show()\r\n```\r\n\r\nThe current unfortunate workaround is to set `text=df[\"Finish\"]+\"\"` which causes a separate column to be created in the internal data frame.","author":{"url":"https://github.com/nicolaskruchten","@type":"Person","name":"nicolaskruchten"},"datePublished":"2021-01-12T14:09:12Z","url":"https://github.com/plotly/plotly.py/issues/3019"}
| 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:fda84164-26ce-eff6-e83e-92ab0c0bbfef |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA4A:4279A:1CB1358:26992FC:6B0176C9 |
| html-safe-nonce | b3af5b747d10964705f1e807f3112668c910ac2a51da8bb18c0b7d72fff03618 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTRBOjQyNzlBOjFDQjEzNTg6MjY5OTJGQzo2QjAxNzZDOSIsInZpc2l0b3JfaWQiOiIyMzMwMjM1NjAzNDU2NzE4NTM3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5be01c9adabd8fcbe3aec0ed0d835d64adae0bf1b997b4260a6dc6a51930bf26 |
| hovercard-subject-tag | issue:784268494 |
| 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.py/3019/issue_layout |
| twitter:image | https://opengraph.githubassets.com/de86b0db61e5f43146e6a45b4852789308ccb13b960a17c7d48bae2f2d1e65cb/plotly/plotly.py/issues/3019 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/de86b0db61e5f43146e6a45b4852789308ccb13b960a17c7d48bae2f2d1e65cb/plotly/plotly.py/issues/3019 |
| og:image:alt | Broken off of #2934... Here the text will be the computed delta value because PX rewrites the data frame and reuses the column name Finish for x: import plotly.express as px import pandas as pd df ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nicolaskruchten |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.py git https://github.com/plotly/plotly.py.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 14579099 |
| octolytics-dimension-repository_nwo | plotly/plotly.py |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14579099 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.py |
| 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