René's URL Explorer Experiment


Title: plotly with pandas>=3.0 fails to raise name conflict error · Issue #4837 · plotly/plotly.py · GitHub

Open Graph Title: plotly with pandas>=3.0 fails to raise name conflict error · Issue #4837 · plotly/plotly.py

X Title: plotly with pandas>=3.0 fails to raise name conflict error · Issue #4837 · plotly/plotly.py

Description: import pandas as pd import plotly.express as px df = pd.DataFrame(dict(x=[0, 1], y=[1, 10], z=[0.1, 0.8], money=[100, 200])) df2 = pd.DataFrame(dict(time=[23, 26], money=[100, 200])) fig = px.scatter(df, x="z", y=df2.money, size=df.y) Wi...

Open Graph Description: import pandas as pd import plotly.express as px df = pd.DataFrame(dict(x=[0, 1], y=[1, 10], z=[0.1, 0.8], money=[100, 200])) df2 = pd.DataFrame(dict(time=[23, 26], money=[100, 200])) fig = px.scatt...

X Description: import pandas as pd import plotly.express as px df = pd.DataFrame(dict(x=[0, 1], y=[1, 10], z=[0.1, 0.8], money=[100, 200])) df2 = pd.DataFrame(dict(time=[23, 26], money=[100, 200])) fig = px.scatt...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"plotly with pandas>=3.0 fails to raise name conflict error","articleBody":"```python\nimport pandas as pd\nimport plotly.express as px\ndf = pd.DataFrame(dict(x=[0, 1], y=[1, 10], z=[0.1, 0.8], money=[100, 200]))\ndf2 = pd.DataFrame(dict(time=[23, 26], money=[100, 200]))\nfig = px.scatter(df, x=\"z\", y=df2.money, size=df.y)\n```\n\nWith pandas 2.2.3:\n```python-traceback\nTraceback (most recent call last):\n  File \"/home/marcogorelli/scratch/.venv/lib/python3.12/site-packages/marimo/_runtime/executor.py\", line 157, in execute_cell\n    exec(cell.body, glbls)\n  Cell marimo://trying_plotly.py#cell=cell-0\n, line 5, in \u003cmodule>\n    fig = px.scatter(df, x=\"z\", y=df2.money, size=df.y)\n          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/home/marcogorelli/scratch/.venv/lib/python3.12/site-packages/plotly/express/_chart_types.py\", line 66, in scatter\n    return make_figure(args=locals(), constructor=go.Scatter)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/home/marcogorelli/scratch/.venv/lib/python3.12/site-packages/plotly/express/_core.py\", line 2117, in make_figure\n    args = build_dataframe(args, constructor)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/home/marcogorelli/scratch/.venv/lib/python3.12/site-packages/plotly/express/_core.py\", line 1513, in build_dataframe\n    df_output, wide_id_vars = process_args_into_dataframe(\n                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/home/marcogorelli/scratch/.venv/lib/python3.12/site-packages/plotly/express/_core.py\", line 1271, in process_args_into_dataframe\n    col_name = _check_name_not_reserved(field, reserved_names)\n               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/home/marcogorelli/scratch/.venv/lib/python3.12/site-packages/plotly/express/_core.py\", line 1006, in _check_name_not_reserved\n    raise NameError(\nNameError: A name conflict was encountered for argument 'y'. A column or index with name 'y' is ambiguous.\n```\n\nWith the latest pandas nightly (installable with `pip install --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple pandas`) it just plots, without raising\n\n![Image](https://github.com/user-attachments/assets/32de1f46-b6ce-4380-bf91-1c4470132c5e)\n\nThe difference is due to pandas no longer caching `__getitem__` for columns:\n\nin pandas 3.0+\n```python\nIn [1]: import pandas as pd\n\nIn [2]: df = pd.DataFrame({'a': [1,2,3], 'b': [4,5,6]})\n\nIn [3]: df['a'] is df['a']\nOut[3]: False\n````\n\nin pandas 2.2.3\n```python\nIn [1]: import pandas as pd\n\nIn [2]: df = pd.DataFrame({'a': [1,2,3], 'b': [4,5,6]})\n\nIn [3]: df['a'] is df['a']\nOut[3]: True\n```","author":{"url":"https://github.com/MarcoGorelli","@type":"Person","name":"MarcoGorelli"},"datePublished":"2024-10-28T09:47:23Z","url":"https://github.com/plotly/plotly.py/issues/4837"}

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:cc1467d3-878f-45cb-1215-11c229130536
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC2F4:16AB79:FE96C6:14482BB:6B011207
html-safe-noncedbca84e203be44f87b1df6732043fa7b4358dc3b938fa3a74d44576e1d978f5a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkY0OjE2QUI3OTpGRTk2QzY6MTQ0ODJCQjo2QjAxMTIwNyIsInZpc2l0b3JfaWQiOiIyMzA3NjAxNjI0MDIyOTc5MDc5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmace9cbfd45a5737dcf74f7af40bcf463541c3a0fe97a288cb89918d7b47b8233b9
hovercard-subject-tagissue:2617886748
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/4837/issue_layout
twitter:imagehttps://opengraph.githubassets.com/352db522645164764baf9ace5dc804a857cdcca30f4c46fdffef01dcf14a5543/plotly/plotly.py/issues/4837
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/352db522645164764baf9ace5dc804a857cdcca30f4c46fdffef01dcf14a5543/plotly/plotly.py/issues/4837
og:image:altimport pandas as pd import plotly.express as px df = pd.DataFrame(dict(x=[0, 1], y=[1, 10], z=[0.1, 0.8], money=[100, 200])) df2 = pd.DataFrame(dict(time=[23, 26], money=[100, 200])) fig = px.scatt...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMarcoGorelli
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
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
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/plotly/plotly.py/issues/4837#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.py%2Fissues%2F4837
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%2F4837
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/4837
Reloadhttps://github.com/plotly/plotly.py/issues/4837
Reloadhttps://github.com/plotly/plotly.py/issues/4837
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/4837
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.py/issues/4837
plotly with pandas>=3.0 fails to raise name conflict errorhttps://github.com/plotly/plotly.py/issues/4837#top
https://github.com/emilykl
P2considered for next cyclehttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22P2%22
bugsomething brokenhttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/MarcoGorelli
MarcoGorellihttps://github.com/MarcoGorelli
on Oct 28, 2024https://github.com/plotly/plotly.py/issues/4837#issue-2617886748
https://private-user-images.githubusercontent.com/33491632/380658778-32de1f46-b6ce-4380-bf91-1c4470132c5e.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyMzI1NjMsIm5iZiI6MTc5NTIzMjI2MywicGF0aCI6Ii8zMzQ5MTYzMi8zODA2NTg3NzgtMzJkZTFmNDYtYjZjZS00MzgwLWJmOTEtMWM0NDcwMTMyYzVlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIxVDAzMzc0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNkNjhjOWZjYTc0MTZmY2E3MTUwNTBhY2IwZTVkNWZjYmU0OWIwOTlkZjAzZWNlZDBkNGZlNzY3OGJiZDI4OGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.XpZSCg7o0YrVV-Y1BbzEf0OPA0lzMHuH9ZVbN7VOkk4
gvwilsonhttps://github.com/gvwilson
bugsomething brokenhttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22bug%22
P1needed for current cyclehttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22P1%22
on Oct 28, 2024https://github.com/plotly/plotly.py/issues/4837#event-14968282432
gvwilsonhttps://github.com/gvwilson
emilyklhttps://github.com/emilykl
on Oct 28, 2024https://github.com/plotly/plotly.py/issues/4837#event-14968284461
https://github.com/emilykl
emilyklhttps://github.com/emilykl
on Oct 28, 2024https://github.com/plotly/plotly.py/issues/4837#issuecomment-2442662903
@MarcoGorellihttps://github.com/MarcoGorelli
gvwilsonhttps://github.com/gvwilson
P2considered for next cyclehttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22P2%22
P1needed for current cyclehttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22P1%22
on Oct 29, 2024https://github.com/plotly/plotly.py/issues/4837#event-14985488994
https://github.com/MarcoGorelli
MarcoGorellihttps://github.com/MarcoGorelli
on Oct 29, 2024https://github.com/plotly/plotly.py/issues/4837#issuecomment-2445378458
https://private-user-images.githubusercontent.com/33491632/381312527-ca563c60-202d-462e-ab3c-3bacc68651e3.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyMzI1NjMsIm5iZiI6MTc5NTIzMjI2MywicGF0aCI6Ii8zMzQ5MTYzMi8zODEzMTI1MjctY2E1NjNjNjAtMjAyZC00NjJlLWFiM2MtM2JhY2M2ODY1MWUzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIxVDAzMzc0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVjYzM0OGIyMmI1YTYwZjVlOTMyYmI2YTRjYzIxNWU2YWVhMWZiOTg0NGE0NzBlMmRmM2NjMTBiY2IwZGJjYTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.PWnKzAyWaGhIc_lzzVPfWgLHE7mN7tzavpxlEKCqpfA
plotly.py/packages/python/plotly/plotly/tests/test_optional/test_px/test_px_input.pyhttps://github.com/plotly/plotly.py/blob/9c5d112cafd6f1b738697e19a74191a42ae4cc6f/packages/python/plotly/plotly/tests/test_optional/test_px/test_px_input.py#L96-L98
9c5d112https://github.com/plotly/plotly.py/commit/9c5d112cafd6f1b738697e19a74191a42ae4cc6f
#1768https://github.com/plotly/plotly.py/pull/1768
#1768 (comment)https://github.com/plotly/plotly.py/pull/1768#discussion_r329687081
pandas-dev/pandas#56614https://github.com/pandas-dev/pandas/pull/56614
https://github.com/MarcoGorelli
MarcoGorellihttps://github.com/MarcoGorelli
on Nov 13, 2024https://github.com/plotly/plotly.py/issues/4837#issuecomment-2474233264
#4790https://github.com/plotly/plotly.py/pull/4790
MarcoGorellihttps://github.com/MarcoGorelli
completedhttps://github.com/plotly/plotly.py/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 13, 2024https://github.com/plotly/plotly.py/issues/4837#event-15286593824
Sign up for freehttps://github.com/signup?return_to=https://github.com/plotly/plotly.py/issues/4837
Sign in to commenthttps://github.com/login?return_to=https://github.com/plotly/plotly.py/issues/4837
emilyklhttps://github.com/emilykl
P2considered for next cyclehttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22P2%22
bugsomething brokenhttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22bug%22
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.