René's URL Explorer Experiment


Title: Improve groupby's `agg` performance on large data; from 16s to 20ms for 20k rows by TheSisb · Pull Request #677 · javascriptdata/danfojs · GitHub

Open Graph Title: Improve groupby's `agg` performance on large data; from 16s to 20ms for 20k rows by TheSisb · Pull Request #677 · javascriptdata/danfojs

X Title: Improve groupby's `agg` performance on large data; from 16s to 20ms for 20k rows by TheSisb · Pull Request #677 · javascriptdata/danfojs

Description: Hey all 👋 , tl;dr I'm using danfojs in a project and noticed some severe performance issues: I tracked it down to the .agg() calls: 16seconds seemed unreasonable, so I figured there would be easy...

Open Graph Description: Hey all 👋 , tl;dr I'm using danfojs in a project and noticed some severe performance issues: I tracked it down to the .agg() calls: 16seconds seemed unreasonable, so I figured there would be ...

X Description: Hey all 👋 , tl;dr I'm using danfojs in a project and noticed some severe performance issues: I tracked it down to the .agg() calls: 16seconds seemed unreasonable, so I figured there would...

Opengraph URL: https://github.com/javascriptdata/danfojs/pull/677

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:0b9d2392-fcdf-b23e-dd79-7a1b379283a0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD2D8:368761:46ED7E:63C559:6970A991
html-safe-noncec27d6e5b8deb2bada8ac5c4673d872089df076d165c275098f243ba92ce6158d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkQ4OjM2ODc2MTo0NkVEN0U6NjNDNTU5OjY5NzBBOTkxIiwidmlzaXRvcl9pZCI6IjQyMzM0MDY3NjcwMTEyNDQ0MzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb5b2bd45c79ceea29e3c18d3158839857bef82e09cd23417d4ec8ad5004c8082
hovercard-subject-tagpull_request:2864835311
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/javascriptdata/danfojs/677/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/ab4002c1a7271f2a53b168d607919320c2165ba157afd200c3a24f20c43573da/javascriptdata/danfojs/pull/677
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ab4002c1a7271f2a53b168d607919320c2165ba157afd200c3a24f20c43573da/javascriptdata/danfojs/pull/677
og:image:altHey all 👋 , tl;dr I'm using danfojs in a project and noticed some severe performance issues: I tracked it down to the .agg() calls: 16seconds seemed unreasonable, so I figured there would be ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameTheSisb
hostnamegithub.com
expected-hostnamegithub.com
None5246860f280a060af866c1c633f74a6720ad2dd5d576534e4c5e462496b693ae
turbo-cache-controlno-preview
go-importgithub.com/javascriptdata/danfojs git https://github.com/javascriptdata/danfojs.git
octolytics-dimension-user_id62061637
octolytics-dimension-user_loginjavascriptdata
octolytics-dimension-repository_id263751330
octolytics-dimension-repository_nwojavascriptdata/danfojs
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id263751330
octolytics-dimension-repository_network_root_nwojavascriptdata/danfojs
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
release7d29ab0ba8deb7bbecf06b664759d4e847623783
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/javascriptdata/danfojs/pull/677#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjavascriptdata%2Fdanfojs%2Fpull%2F677
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%2Fjavascriptdata%2Fdanfojs%2Fpull%2F677
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=javascriptdata%2Fdanfojs
Reloadhttps://patch-diff.githubusercontent.com/javascriptdata/danfojs/pull/677
Reloadhttps://patch-diff.githubusercontent.com/javascriptdata/danfojs/pull/677
Reloadhttps://patch-diff.githubusercontent.com/javascriptdata/danfojs/pull/677
javascriptdata https://patch-diff.githubusercontent.com/javascriptdata
danfojshttps://patch-diff.githubusercontent.com/javascriptdata/danfojs
Please reload this pagehttps://patch-diff.githubusercontent.com/javascriptdata/danfojs/pull/677
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fjavascriptdata%2Fdanfojs
Fork 222 https://patch-diff.githubusercontent.com/login?return_to=%2Fjavascriptdata%2Fdanfojs
Star 5k https://patch-diff.githubusercontent.com/login?return_to=%2Fjavascriptdata%2Fdanfojs
Code https://patch-diff.githubusercontent.com/javascriptdata/danfojs
Issues 70 https://patch-diff.githubusercontent.com/javascriptdata/danfojs/issues
Pull requests 15 https://patch-diff.githubusercontent.com/javascriptdata/danfojs/pulls
Discussions https://patch-diff.githubusercontent.com/javascriptdata/danfojs/discussions
Actions https://patch-diff.githubusercontent.com/javascriptdata/danfojs/actions
Projects 0 https://patch-diff.githubusercontent.com/javascriptdata/danfojs/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/javascriptdata/danfojs/security
Please reload this pagehttps://patch-diff.githubusercontent.com/javascriptdata/danfojs/pull/677
Insights https://patch-diff.githubusercontent.com/javascriptdata/danfojs/pulse
Code https://patch-diff.githubusercontent.com/javascriptdata/danfojs
Issues https://patch-diff.githubusercontent.com/javascriptdata/danfojs/issues
Pull requests https://patch-diff.githubusercontent.com/javascriptdata/danfojs/pulls
Discussions https://patch-diff.githubusercontent.com/javascriptdata/danfojs/discussions
Actions https://patch-diff.githubusercontent.com/javascriptdata/danfojs/actions
Projects https://patch-diff.githubusercontent.com/javascriptdata/danfojs/projects
Security https://patch-diff.githubusercontent.com/javascriptdata/danfojs/security
Insights https://patch-diff.githubusercontent.com/javascriptdata/danfojs/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fjavascriptdata%2Fdanfojs%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=%2Fjavascriptdata%2Fdanfojs%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://patch-diff.githubusercontent.com/javascriptdata/danfojs/pull/677#issue-comment-box
TheSisbhttps://patch-diff.githubusercontent.com/TheSisb
javascriptdata:devhttps://patch-diff.githubusercontent.com/javascriptdata/danfojs/tree/dev
TheSisb:devhttps://patch-diff.githubusercontent.com/TheSisb/danfojs/tree/dev
Improve groupby's agg performance on large data; from 16s to 20ms for 20k rows https://patch-diff.githubusercontent.com/javascriptdata/danfojs/pull/677#top
TheSisbhttps://patch-diff.githubusercontent.com/TheSisb
javascriptdata:devhttps://patch-diff.githubusercontent.com/javascriptdata/danfojs/tree/dev
TheSisb:devhttps://patch-diff.githubusercontent.com/TheSisb/danfojs/tree/dev
Conversation 0 https://patch-diff.githubusercontent.com/javascriptdata/danfojs/pull/677
Commits 1 https://patch-diff.githubusercontent.com/javascriptdata/danfojs/pull/677/commits
Checks 2 https://patch-diff.githubusercontent.com/javascriptdata/danfojs/pull/677/checks
Files changed https://patch-diff.githubusercontent.com/javascriptdata/danfojs/pull/677/files
Please reload this pagehttps://patch-diff.githubusercontent.com/javascriptdata/danfojs/pull/677
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/javascriptdata/danfojs/pull/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/TheSisb
TheSisbhttps://patch-diff.githubusercontent.com/TheSisb
Sep 26, 2025https://patch-diff.githubusercontent.com/javascriptdata/danfojs/pull/677#issue-3458356079
https://private-user-images.githubusercontent.com/1592327/494508395-06f13b92-811b-4d3b-8a9d-a7807bd073f3.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Njg5OTE0MjEsIm5iZiI6MTc2ODk5MTEyMSwicGF0aCI6Ii8xNTkyMzI3LzQ5NDUwODM5NS0wNmYxM2I5Mi04MTFiLTRkM2ItOGE5ZC1hNzgwN2JkMDczZjMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDEyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjAxMjFUMTAyNTIxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Y2NkODg4YjZlYmU4NjgyMmMxOTFlNTU1MjBjMTBjOTE1ODk5NWZiNDc3MWViNDgzMzI2M2NlMzc1NWJkMzAxMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.H2aYRSAHn19FzzmuW3BrwEPyv8ufGVxZdGmU2MrF2Uw
https://private-user-images.githubusercontent.com/1592327/494507843-913d31ab-dc63-4355-b4d5-17dbcddc7d0d.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Njg5OTE0MjEsIm5iZiI6MTc2ODk5MTEyMSwicGF0aCI6Ii8xNTkyMzI3LzQ5NDUwNzg0My05MTNkMzFhYi1kYzYzLTQzNTUtYjRkNS0xN2RiY2RkYzdkMGQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDEyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjAxMjFUMTAyNTIxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Zjg2ZWM0YjIxNmMwYmFmODZhM2Q3NWM4Njk0NzE5ZjM3NGQzODEwNzVjZTE5ZWI0MWUxN2YwY2FiZDU1MmJhMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.NOs12j8guCrBlBPEOm-ktD8RsFMqXy5lAQl718_FiAI
https://private-user-images.githubusercontent.com/1592327/494509608-4827e50a-44c8-4479-9057-110a0dbc59f4.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Njg5OTE0MjEsIm5iZiI6MTc2ODk5MTEyMSwicGF0aCI6Ii8xNTkyMzI3LzQ5NDUwOTYwOC00ODI3ZTUwYS00NGM4LTQ0NzktOTA1Ny0xMTBhMGRiYzU5ZjQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDEyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjAxMjFUMTAyNTIxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MjdkYWY3NGFkM2Y5OTYxNDliMTE4Yzk0MTViODc4ZDNhZDA4YTE3M2I1NDRkZmU5ZmI4YzAzNDc0ZTk1NTM0ZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.7XgAIdKtELph5Bs35RvDBHwx81aWWIIYDThWEKpC1Sk
Please reload this pagehttps://patch-diff.githubusercontent.com/javascriptdata/danfojs/pull/677
https://patch-diff.githubusercontent.com/TheSisb
improve groupBy and agg perf by a factor of 10https://patch-diff.githubusercontent.com/javascriptdata/danfojs/pull/677/commits/bd93995f5ab0678d37cc3247e8bd929602de5b5d
bd93995https://patch-diff.githubusercontent.com/javascriptdata/danfojs/pull/677/commits/bd93995f5ab0678d37cc3247e8bd929602de5b5d
https://patch-diff.githubusercontent.com/TheSisb
TheSisbhttps://patch-diff.githubusercontent.com/TheSisb
Sep 26, 2025https://patch-diff.githubusercontent.com/javascriptdata/danfojs/pull/677#event-19948399763
https://patch-diff.githubusercontent.com/TheSisb
TheSisbhttps://patch-diff.githubusercontent.com/TheSisb
Nov 6, 2025https://patch-diff.githubusercontent.com/javascriptdata/danfojs/pull/677#event-20771967013
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%2Fjavascriptdata%2Fdanfojs%2Fpull%2F677
Please reload this pagehttps://patch-diff.githubusercontent.com/javascriptdata/danfojs/pull/677
https://patch-diff.githubusercontent.com/TheSisb
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.