René's URL Explorer Experiment


Title: Use NaN-safe numpy functions in metric aggregations by Copilot · Pull Request #312 · 4n4nd/prometheus-api-client-python · GitHub

Open Graph Title: Use NaN-safe numpy functions in metric aggregations by Copilot · Pull Request #312 · 4n4nd/prometheus-api-client-python

X Title: Use NaN-safe numpy functions in metric aggregations by Copilot · Pull Request #312 · 4n4nd/prometheus-api-client-python

Description: Metric aggregations returned NaN when any data point contained NaN, making the aggregation functions unusable for real-world metrics with missing data. Changes Core aggregation logic: Replaced st...

Open Graph Description: Metric aggregations returned NaN when any data point contained NaN, making the aggregation functions unusable for real-world metrics with missing data. Changes Core aggregation logic: Replaced st...

X Description: Metric aggregations returned NaN when any data point contained NaN, making the aggregation functions unusable for real-world metrics with missing data. Changes Core aggregation logic: Replaced st...

Opengraph URL: https://github.com/4n4nd/prometheus-api-client-python/pull/312

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:58b0f32b-9096-5344-fb83-49575c404f2f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id86C2:30873E:CE80AE8:1135C2BA:698C8388
html-safe-noncedfdb45958335a6af2c5af0ba2ff95597216f94a2066c2bb65d1c640a60bf43a4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkMyOjMwODczRTpDRTgwQUU4OjExMzVDMkJBOjY5OEM4Mzg4IiwidmlzaXRvcl9pZCI6IjMwMjIxNTgyNzkzODE2NDgyNjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacad718e5a2396e0ed093745e5c4ce79a527519b7179b06eec90748ed9336c6e9d
hovercard-subject-tagpull_request:3070065219
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/4n4nd/prometheus-api-client-python/312/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/a3eafc76d4153427087120204401144ebcd404f93f5b85405a3157c44373270d/4n4nd/prometheus-api-client-python/pull/312
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a3eafc76d4153427087120204401144ebcd404f93f5b85405a3157c44373270d/4n4nd/prometheus-api-client-python/pull/312
og:image:altMetric aggregations returned NaN when any data point contained NaN, making the aggregation functions unusable for real-world metrics with missing data. Changes Core aggregation logic: Replaced st...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameCopilot
hostnamegithub.com
expected-hostnamegithub.com
None640eeb7b6ff4d8d106235d228c0c286e82592d4d2403227b5b2b4fc5832297a4
turbo-cache-controlno-preview
go-importgithub.com/4n4nd/prometheus-api-client-python git https://github.com/4n4nd/prometheus-api-client-python.git
octolytics-dimension-user_id22333506
octolytics-dimension-user_login4n4nd
octolytics-dimension-repository_id174265685
octolytics-dimension-repository_nwo4n4nd/prometheus-api-client-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id174265685
octolytics-dimension-repository_network_root_nwo4n4nd/prometheus-api-client-python
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
release3d444f0a47beeeac94cddbb51c91ab408befe8d4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2F4n4nd%2Fprometheus-api-client-python%2Fpull%2F312
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2F4n4nd%2Fprometheus-api-client-python%2Fpull%2F312
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=4n4nd%2Fprometheus-api-client-python
Reloadhttps://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312
Reloadhttps://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312
Reloadhttps://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312
4n4nd https://patch-diff.githubusercontent.com/4n4nd
prometheus-api-client-pythonhttps://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python
Please reload this pagehttps://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2F4n4nd%2Fprometheus-api-client-python
Fork 90 https://patch-diff.githubusercontent.com/login?return_to=%2F4n4nd%2Fprometheus-api-client-python
Star 270 https://patch-diff.githubusercontent.com/login?return_to=%2F4n4nd%2Fprometheus-api-client-python
Code https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python
Issues 15 https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/issues
Pull requests 4 https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pulls
Discussions https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/discussions
Actions https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/actions
Projects 0 https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/projects
Security 0 https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/security
Insights https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pulse
Code https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python
Issues https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/issues
Pull requests https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pulls
Discussions https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/discussions
Actions https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/actions
Projects https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/projects
Security https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/security
Insights https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2F4n4nd%2Fprometheus-api-client-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2F4n4nd%2Fprometheus-api-client-python%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312#issue-comment-box
Copilothttps://patch-diff.githubusercontent.com/apps/copilot-swe-agent
masterhttps://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/tree/master
copilot/handle-nan-values-in-aggregationshttps://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/tree/copilot/handle-nan-values-in-aggregations
Use NaN-safe numpy functions in metric aggregations https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312#top
Copilothttps://patch-diff.githubusercontent.com/apps/copilot-swe-agent
masterhttps://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/tree/master
copilot/handle-nan-values-in-aggregationshttps://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/tree/copilot/handle-nan-values-in-aggregations
Conversation 0 https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312
Commits 4 https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312/commits
Checks 1 https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312/checks
Files changed https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312/files
Please reload this pagehttps://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/apps/copilot-swe-agent
Copilothttps://patch-diff.githubusercontent.com/apps/copilot-swe-agent
Dec 4, 2025https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312#issue-3693197484
Please reload this pagehttps://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312
sumhttps://numpy.org/doc/stable/reference/generated/numpy.sum.html#numpy.sum
nansumhttps://numpy.org/doc/stable/reference/generated/numpy.nansum.html
maxhttps://numpy.org/doc/stable/reference/generated/numpy.amax.html#numpy.amax
nanmaxhttps://numpy.org/doc/stable/reference/generated/numpy.nanmax.html#numpy.nanmax
minhttps://numpy.org/doc/stable/reference/generated/numpy.amin.html#numpy.amin
nanminhttps://numpy.org/doc/stable/reference/generated/numpy.nanmin.html#numpy.nanmin
averagehttps://numpy.org/doc/stable/reference/generated/numpy.average.html
nanmeanhttps://numpy.org/doc/stable/reference/generated/numpy.nanmean.html#numpy.nanmean
percentilehttps://numpy.org/doc/stable/reference/generated/numpy.percentile.html
nanpercentilehttps://numpy.org/doc/stable/reference/generated/numpy.nanpercentile.html
stdhttps://numpy.org/doc/stable/reference/generated/numpy.std.html
nanstdhttps://numpy.org/doc/stable/reference/generated/numpy.nanstd.html
varhttps://numpy.org/doc/stable/reference/generated/numpy.var.html
nanvarhttps://numpy.org/doc/stable/reference/generated/numpy.nanvar.html
@copilothttps://gh.io/copilot-coding-agent-docs
Handling of NaN values in metric aggregations #264https://github.com/4n4nd/prometheus-api-client-python/issues/264
Copilot coding agent tipshttps://gh.io/copilot-coding-agent-tips
Please reload this pagehttps://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312
https://patch-diff.githubusercontent.com/apps/copilot-swe-agent
Copilothttps://patch-diff.githubusercontent.com/apps/copilot-swe-agent
Dec 4, 2025https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312#event-21351012853
https://patch-diff.githubusercontent.com/apps/copilot-swe-agent
Initial planhttps://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312/commits/2c1e925d55bcf300f6bb5faeaa61e8d498b98e9b
2c1e925https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312/commits/2c1e925d55bcf300f6bb5faeaa61e8d498b98e9b
https://patch-diff.githubusercontent.com/apps/copilot-swe-agent
Copilothttps://patch-diff.githubusercontent.com/apps/copilot-swe-agent
4n4ndhttps://patch-diff.githubusercontent.com/4n4nd
Dec 4, 2025https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312#event-21351012891
started workhttps://github.com/4n4nd/prometheus-api-client-python/agents/pull/312?session_id=febd4403-99b6-431b-8f57-5aad910c5969
4n4ndhttps://patch-diff.githubusercontent.com/4n4nd
December 4, 2025 06:51https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312#event-21351020039
View session https://github.com/4n4nd/prometheus-api-client-python/agents/pull/312?session_id=febd4403-99b6-431b-8f57-5aad910c5969
Copilothttps://patch-diff.githubusercontent.com/apps/copilot-swe-agent
December 4, 2025 06:56https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312#commits-pushed-c2f875f
https://patch-diff.githubusercontent.com/apps/copilot-swe-agent
https://patch-diff.githubusercontent.com/4n4nd
Replace numpy functions with NaN-safe variants in metric aggregationshttps://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312/commits/c2f875fba14359136d5b2b2e253928a3377b3bd2
c2f875fhttps://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312/commits/c2f875fba14359136d5b2b2e253928a3377b3bd2
https://patch-diff.githubusercontent.com/apps/copilot-swe-agent
https://patch-diff.githubusercontent.com/4n4nd
Apply code formatting with black and fix flake8 issueshttps://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312/commits/0559710dd880cfe84c41ed889c6d3a49f703b4ff
0559710https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312/commits/0559710dd880cfe84c41ed889c6d3a49f703b4ff
https://patch-diff.githubusercontent.com/apps/copilot-swe-agent
https://patch-diff.githubusercontent.com/4n4nd
Address code review feedbackhttps://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312/commits/998d276d799dddf953df96eb7f86d45623e301c7
998d276https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312/commits/998d276d799dddf953df96eb7f86d45623e301c7
https://patch-diff.githubusercontent.com/apps/copilot-swe-agent
Copilothttps://patch-diff.githubusercontent.com/apps/copilot-swe-agent
Dec 4, 2025https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312#event-21351186634
https://patch-diff.githubusercontent.com/apps/copilot-swe-agent
Copilothttps://patch-diff.githubusercontent.com/apps/copilot-swe-agent
4n4ndhttps://patch-diff.githubusercontent.com/4n4nd
December 4, 2025 07:02https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312#event-21351188686
finished workhttps://github.com/copilot/tasks/pull/PR_kwDOCmMVVc62_XpD?session_id=febd4403-99b6-431b-8f57-5aad910c5969
4n4ndhttps://patch-diff.githubusercontent.com/4n4nd
December 4, 2025 07:02https://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312#event-21351188705
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2F4n4nd%2Fprometheus-api-client-python%2Fpull%2F312
https://patch-diff.githubusercontent.com/4n4nd
4n4nd https://patch-diff.githubusercontent.com/4n4nd
https://patch-diff.githubusercontent.com/4n4nd
4n4nd https://patch-diff.githubusercontent.com/4n4nd
Copilot code review https://patch-diff.githubusercontent.com/apps/copilot-swe-agent
Copilot https://patch-diff.githubusercontent.com/apps/copilot-swe-agent
Handling of NaN values in metric aggregations https://github.com/4n4nd/prometheus-api-client-python/issues/264
Please reload this pagehttps://patch-diff.githubusercontent.com/4n4nd/prometheus-api-client-python/pull/312
https://patch-diff.githubusercontent.com/apps/copilot-swe-agent
https://patch-diff.githubusercontent.com/4n4nd
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.