René's URL Explorer Experiment


Title: figure_factory create_hexbin_mapbox ignored agg_func · Issue #4632 · plotly/plotly.py · GitHub

Open Graph Title: figure_factory create_hexbin_mapbox ignored agg_func · Issue #4632 · plotly/plotly.py

X Title: figure_factory create_hexbin_mapbox ignored agg_func · Issue #4632 · plotly/plotly.py

Description: As the title states, the aggregation function is entirely ignored and it does not make any difference whether you insert np.mean, np.min or np.max. Using plotly==5.22.0 Example: Generate data import plotly.figure_factory as ff import pan...

Open Graph Description: As the title states, the aggregation function is entirely ignored and it does not make any difference whether you insert np.mean, np.min or np.max. Using plotly==5.22.0 Example: Generate data impor...

X Description: As the title states, the aggregation function is entirely ignored and it does not make any difference whether you insert np.mean, np.min or np.max. Using plotly==5.22.0 Example: Generate data impor...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"figure_factory create_hexbin_mapbox ignored agg_func","articleBody":"As the title states, the aggregation function is entirely ignored and it does not make any difference whether you insert np.mean, np.min or np.max. Using `plotly==5.22.0`\r\n\r\nExample: \r\n\r\n1. Generate data \r\n\r\n```python\r\nimport plotly.figure_factory as ff\r\nimport pandas as pd\r\nimport numpy as np\r\n\r\n# Mock GeoDataFrame with latitude, longitude, and value columns\r\nnp.random.seed(0)\r\nnum_points = 1000\r\ndata = {\r\n    'lat': np.random.uniform(40, 45, num_points),\r\n    'lon': np.random.uniform(-75, -70, num_points),\r\n    'value': np.random.uniform(0, 1, num_points)\r\n}\r\ndf = pd.DataFrame(data)\r\ndf\r\n```\r\n\r\n2. Plot and check vals\r\n\r\n```python \r\n\r\nfig = ff.create_hexbin_mapbox(\r\n    data_frame=df, lat=\"lat\", lon=\"lon\",\r\n    nx_hexagon=50,  # Decrease the size of hexagons\r\n    opacity=0.5, labels={\"color\": \"value\"},\r\n    color_continuous_scale=\"Viridis\",\r\n    agg_func=np.min,  # or np.max aggregation\r\n    show_original_data=True,\r\n    original_data_marker=dict(size=1.1, opacity=0.6, color=\"deeppink\")\r\n)\r\n\r\n# Extract the hexbin data\r\nhexbin_data = fig.data[0]\r\n\r\n# Check the hexbin values\r\nprint(\"Hexbin values (z):\", hexbin_data.z)\r\n\r\n# Update the text of each hexagon to display the maximum value\r\nhexbin_data.hovertemplate = 'Value: %{z}\u003cextra>\u003c/extra>'\r\n\r\n# Update the layout to use OSM tiles\r\nfig.update_layout(\r\n    mapbox_style=\"open-street-map\",\r\n    height=800  # Set the desired height\r\n)\r\n\r\nfig.show()\r\n\r\n```\r\n\r\nOutput for np.min, np.mean and np.max is identical:\r\n\r\n`Hexbin values (z): [0. 0. 0. ... 0. 1. 0.]`\r\n\r\nHence, the plot does not change. \r\n","author":{"url":"https://github.com/do-me","@type":"Person","name":"do-me"},"datePublished":"2024-06-11T14:06:13Z","url":"https://github.com/plotly/plotly.py/issues/4632"}

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:20c11865-176a-d5c4-6dc2-19999a4b6bd1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9182:D5AA4:1194C63:1777172:6B0111D0
html-safe-nonceade4dabdd0554612465092d095345e96fa38daddd1ab4ce82766b4945e7cca9c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTgyOkQ1QUE0OjExOTRDNjM6MTc3NzE3Mjo2QjAxMTFEMCIsInZpc2l0b3JfaWQiOiI1OTkxNzIyOTQzMDE1NjIxMDcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacfb9a03ca8614a47b73c5e231f045ad5b3958d0d55929e11164511b76fa2c16b2
hovercard-subject-tagissue:2346533928
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/4632/issue_layout
twitter:imagehttps://opengraph.githubassets.com/751593ea8c1892549a65c997f6e4ae072836f7cb80bc74457f68cce711cad759/plotly/plotly.py/issues/4632
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/751593ea8c1892549a65c997f6e4ae072836f7cb80bc74457f68cce711cad759/plotly/plotly.py/issues/4632
og:image:altAs the title states, the aggregation function is entirely ignored and it does not make any difference whether you insert np.mean, np.min or np.max. Using plotly==5.22.0 Example: Generate data impor...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedo-me
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/4632#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.py%2Fissues%2F4632
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%2F4632
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/4632
Reloadhttps://github.com/plotly/plotly.py/issues/4632
Reloadhttps://github.com/plotly/plotly.py/issues/4632
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/4632
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.py/issues/4632
#5756https://github.com/plotly/plotly.py/pull/5756
figure_factory create_hexbin_mapbox ignored agg_funchttps://github.com/plotly/plotly.py/issues/4632#top
#5756https://github.com/plotly/plotly.py/pull/5756
P3backloghttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22P3%22
bugsomething brokenhttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22bug%22
sev-4cosmetichttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22sev-4%22
https://github.com/do-me
do-mehttps://github.com/do-me
on Jun 11, 2024https://github.com/plotly/plotly.py/issues/4632#issue-2346533928
Coding-with-Adamhttps://github.com/Coding-with-Adam
bugsomething brokenhttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22bug%22
sev-4cosmetichttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22sev-4%22
on Jun 25, 2024https://github.com/plotly/plotly.py/issues/4632#event-13284957204
gvwilsonhttps://github.com/gvwilson
on Jul 12, 2024https://github.com/plotly/plotly.py/issues/4632#event-13479328731
gvwilsonhttps://github.com/gvwilson
on Aug 2, 2024https://github.com/plotly/plotly.py/issues/4632#event-13740666600
gvwilsonhttps://github.com/gvwilson
P3backloghttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22P3%22
on Aug 12, 2024https://github.com/plotly/plotly.py/issues/4632#event-13849303720
Sign up for freehttps://github.com/signup?return_to=https://github.com/plotly/plotly.py/issues/4632
Sign in to commenthttps://github.com/login?return_to=https://github.com/plotly/plotly.py/issues/4632
P3backloghttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22P3%22
bugsomething brokenhttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22bug%22
sev-4cosmetichttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22sev-4%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.