René's URL Explorer Experiment


Title: copy_to_readonly_numpy_array needlessly copies pandas series objects · Issue #1081 · plotly/plotly.py · GitHub

Open Graph Title: copy_to_readonly_numpy_array needlessly copies pandas series objects · Issue #1081 · plotly/plotly.py

X Title: copy_to_readonly_numpy_array needlessly copies pandas series objects · Issue #1081 · plotly/plotly.py

Description: the function _plotly_utils.basevalidators.copy_to_readonly_numpy_array performs a full copy of pd.Series objects which contain existing np.ndarray data as the values attribute. we could utilize the values attribute to dramatically speed ...

Open Graph Description: the function _plotly_utils.basevalidators.copy_to_readonly_numpy_array performs a full copy of pd.Series objects which contain existing np.ndarray data as the values attribute. we could utilize the...

X Description: the function _plotly_utils.basevalidators.copy_to_readonly_numpy_array performs a full copy of pd.Series objects which contain existing np.ndarray data as the values attribute. we could utilize the...

Opengraph URL: https://github.com/plotly/plotly.py/issues/1081

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"copy_to_readonly_numpy_array needlessly copies pandas series objects","articleBody":"the function `_plotly_utils.basevalidators.copy_to_readonly_numpy_array` performs a full copy of `pd.Series` objects which contain existing `np.ndarray` data as the `values` attribute. we could utilize the `values` attribute to dramatically speed up trace generation, especially for large dataframes.\r\n\r\n*environment*: `plotly` version `3.1.0`. macos high sierra 10.13.6. `plotly` installation via `conda`\r\n\r\nworking example:\r\n\r\n```python\r\nimport plotly\r\nimport _plotly_utils.basevalidators\r\nimport numpy\r\n\r\nprint('plotly version: {}'.format(plotly.__version__))\r\n\r\ndf = pd.DataFrame({'x': np.random.randint(0, 100, 1000000)})\r\n\r\n# using `ipython` time magic\r\nprint('\\ncoercing series')\r\n%time v1 = _plotly_utils.basevalidators.copy_to_readonly_numpy_array(df.x)\r\n\r\nprint('\\naccessing np values directly')\r\n%time v2 = _plotly_utils.basevalidators.copy_to_readonly_numpy_array(df.x.values)\r\n```\r\n\r\nexample output:\r\n\r\n```\r\nplotly version: 3.1.0\r\n\r\ncoercing series\r\nCPU times: user 987 ms, sys: 35.5 ms, total: 1.02 s\r\nWall time: 854 ms\r\n\r\naccessing np values directly\r\nCPU times: user 1.45 ms, sys: 17 µs, total: 1.46 ms\r\nWall time: 1.49 ms\r\n```\r\n\r\nso a performance difference of approx 1000x","author":{"url":"https://github.com/RZachLamberty","@type":"Person","name":"RZachLamberty"},"datePublished":"2018-07-28T18:12:29Z","url":"https://github.com/plotly/plotly.py/issues/1081"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:476bd51d-3e83-9085-4928-a1e3339ef610
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8552:1201C:20A6873:2B5699F:6B017A12
html-safe-nonce90175a8609ac9f504e3b35e892c52a9166285df796817713998ff8ba9fb8983e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTUyOjEyMDFDOjIwQTY4NzM6MkI1Njk5Rjo2QjAxN0ExMiIsInZpc2l0b3JfaWQiOiIyODA1MDk1ODA3NzAxODQyNDUwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacaab0d591297f4417623e26625445ee4c56f25cc61280eef097c50340f436d848
hovercard-subject-tagissue:345468149
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.py/1081/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cc504e392e8ee963c9a86bf1d3159a65439d847ee7ab0a887b84a6804fb96fad/plotly/plotly.py/issues/1081
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cc504e392e8ee963c9a86bf1d3159a65439d847ee7ab0a887b84a6804fb96fad/plotly/plotly.py/issues/1081
og:image:altthe function _plotly_utils.basevalidators.copy_to_readonly_numpy_array performs a full copy of pd.Series objects which contain existing np.ndarray data as the values attribute. we could utilize the...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameRZachLamberty
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/plotly/plotly.py git https://github.com/plotly/plotly.py.git
octolytics-dimension-user_id5997976
octolytics-dimension-user_loginplotly
octolytics-dimension-repository_id14579099
octolytics-dimension-repository_nwoplotly/plotly.py
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id14579099
octolytics-dimension-repository_network_root_nwoplotly/plotly.py
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/plotly/plotly.py/issues/1081#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.py%2Fissues%2F1081
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.py%2Fissues%2F1081
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=plotly%2Fplotly.py
Reloadhttps://github.com/plotly/plotly.py/issues/1081
Reloadhttps://github.com/plotly/plotly.py/issues/1081
Reloadhttps://github.com/plotly/plotly.py/issues/1081
plotlyhttps://github.com/plotly
plotly.pyhttps://github.com/plotly/plotly.py
Codehttps://github.com/plotly/plotly.py
Issues650 (650)https://github.com/plotly/plotly.py/issues
Pull requests83 (83)https://github.com/plotly/plotly.py/pulls
Actionshttps://github.com/plotly/plotly.py/actions
Security and qualityhttps://github.com/plotly/plotly.py/security
Insightshttps://github.com/plotly/plotly.py/insights
https://github.com/plotly/plotly.py
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.py/issues/1081
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.py/issues/1081
copy_to_readonly_numpy_array needlessly copies pandas series objectshttps://github.com/plotly/plotly.py/issues/1081#top
https://github.com/RZachLamberty
RZachLambertyhttps://github.com/RZachLamberty
on Jul 28, 2018https://github.com/plotly/plotly.py/issues/1081#issue-345468149
https://github.com/RZachLamberty
RZachLambertyhttps://github.com/RZachLamberty
on Jul 28, 2018https://github.com/plotly/plotly.py/issues/1081#issuecomment-408625786
https://github.com/jonmmease
jonmmeasehttps://github.com/jonmmease
on Jul 30, 2018https://github.com/plotly/plotly.py/issues/1081#issuecomment-408808711
jonmmeasehttps://github.com/jonmmease
performancehttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22performance%22
on Aug 1, 2018https://github.com/plotly/plotly.py/issues/1081#event-1764707447
https://github.com/jonmmease
jonmmeasehttps://github.com/jonmmease
on Sep 23, 2018https://github.com/plotly/plotly.py/issues/1081#issuecomment-423806995
#1149https://github.com/plotly/plotly.py/pull/1149
jonmmeasehttps://github.com/jonmmease
completedhttps://github.com/plotly/plotly.py/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 23, 2018https://github.com/plotly/plotly.py/issues/1081#event-1861933839
Sign up for freehttps://github.com/signup?return_to=https://github.com/plotly/plotly.py/issues/1081
Sign in to commenthttps://github.com/login?return_to=https://github.com/plotly/plotly.py/issues/1081
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.