René's URL Explorer Experiment


Title: Apply dict to map values · Issue #246 · python-graphblas/python-graphblas · GitHub

Open Graph Title: Apply dict to map values · Issue #246 · python-graphblas/python-graphblas

X Title: Apply dict to map values · Issue #246 · python-graphblas/python-graphblas

Description: This is probably a crazy idea (and I don't currently have a use case), but could we make it easy to apply a dict to map values? For example, to make the following easier and more reliable (i.e., not rely on inlining the dict): In [10]: v...

Open Graph Description: This is probably a crazy idea (and I don't currently have a use case), but could we make it easy to apply a dict to map values? For example, to make the following easier and more reliable (i.e., no...

X Description: This is probably a crazy idea (and I don't currently have a use case), but could we make it easy to apply a dict to map values? For example, to make the following easier and more reliable (i.e....

Opengraph URL: https://github.com/python-graphblas/python-graphblas/issues/246

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Apply dict to map values","articleBody":"This is probably a crazy idea (and I don't currently have a use case), but could we make it easy to apply a dict to map values?  For example, to make the following easier and more reliable (i.e., not rely on inlining the dict):\r\n```python\r\nIn [10]: v = gb.Vector.from_values(np.arange(5), np.arange(5))\r\n\r\nIn [11]: v\r\nOut[11]:\r\n\"v_2\"      nvals  size  dtype  format\r\ngb.Vector      5     5  INT64    full\r\n-------------------------------------\r\nindex  0  1  2  3  4\r\nvalue  0  1  2  3  4\r\n\r\nIn [12]: v.apply(lambda x: {0: 0, 1: 2, 2: 4, 3: 6, 4: 8}[x]).new()\r\nOut[12]:\r\n\"v_4\"      nvals  size  dtype  format\r\ngb.Vector      5     5  INT64    full\r\n-------------------------------------\r\nindex  0  1  2  3  4\r\nvalue  0  2  4  6  8\r\n```\r\nThis requires Numba to know the types of the dictionary.  Also, I don't know how easy it would be to have a default value.  This may require its own method.\r\n\r\nThis is inspired by the Pandas functionality to be able to use `x.map(d)` to apply a dict or Series mapping.","author":{"url":"https://github.com/eriknw","@type":"Person","name":"eriknw"},"datePublished":"2022-05-23T17:34:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/246/python-graphblas/issues/246"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d6571643-08ec-2f34-3d44-252d8e3e41ba
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCBA6:7E226:287661A:36F7536:697366DB
html-safe-nonce86ad5d5bdbfcf38ae9ebd90f80e1930cb0d1c7a00b2e3dfa264a7465b73dacb3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkE2OjdFMjI2OjI4NzY2MUE6MzZGNzUzNjo2OTczNjZEQiIsInZpc2l0b3JfaWQiOiIxNjkyMDg5Nzg2NTM1MzgwMTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac504b46907604749fb6f409bce7432f52bdbced00e6c244b6ee091a3abaa9108a
hovercard-subject-tagissue:1245498059
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/python-graphblas/python-graphblas/246/issue_layout
twitter:imagehttps://opengraph.githubassets.com/72b8f747bead97557afa90c4fdcacba635be335bd864a3836a8d9a955ba3ae2b/python-graphblas/python-graphblas/issues/246
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/72b8f747bead97557afa90c4fdcacba635be335bd864a3836a8d9a955ba3ae2b/python-graphblas/python-graphblas/issues/246
og:image:altThis is probably a crazy idea (and I don't currently have a use case), but could we make it easy to apply a dict to map values? For example, to make the following easier and more reliable (i.e., no...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameeriknw
hostnamegithub.com
expected-hostnamegithub.com
None4cf879a11b0a28a85543899a36aaee9ec9ca2fb7bedad86c0da5731193c95f01
turbo-cache-controlno-preview
go-importgithub.com/python-graphblas/python-graphblas git https://github.com/python-graphblas/python-graphblas.git
octolytics-dimension-user_id103965858
octolytics-dimension-user_loginpython-graphblas
octolytics-dimension-repository_id221014819
octolytics-dimension-repository_nwopython-graphblas/python-graphblas
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id221014819
octolytics-dimension-repository_network_root_nwopython-graphblas/python-graphblas
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
releasefe8be790582ef7a55477ce1918ac0ed16b106d31
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-graphblas/python-graphblas/issues/246#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-graphblas%2Fpython-graphblas%2Fissues%2F246
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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-graphblas%2Fpython-graphblas%2Fissues%2F246
Sign up https://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=python-graphblas%2Fpython-graphblas
Reloadhttps://github.com/python-graphblas/python-graphblas/issues/246
Reloadhttps://github.com/python-graphblas/python-graphblas/issues/246
Reloadhttps://github.com/python-graphblas/python-graphblas/issues/246
python-graphblas https://github.com/python-graphblas
python-graphblashttps://github.com/python-graphblas/python-graphblas
Notifications https://github.com/login?return_to=%2Fpython-graphblas%2Fpython-graphblas
Fork 16 https://github.com/login?return_to=%2Fpython-graphblas%2Fpython-graphblas
Star 151 https://github.com/login?return_to=%2Fpython-graphblas%2Fpython-graphblas
Code https://github.com/python-graphblas/python-graphblas
Issues 55 https://github.com/python-graphblas/python-graphblas/issues
Pull requests 13 https://github.com/python-graphblas/python-graphblas/pulls
Discussions https://github.com/python-graphblas/python-graphblas/discussions
Actions https://github.com/python-graphblas/python-graphblas/actions
Projects 0 https://github.com/python-graphblas/python-graphblas/projects
Wiki https://github.com/python-graphblas/python-graphblas/wiki
Security 0 https://github.com/python-graphblas/python-graphblas/security
Insights https://github.com/python-graphblas/python-graphblas/pulse
Code https://github.com/python-graphblas/python-graphblas
Issues https://github.com/python-graphblas/python-graphblas/issues
Pull requests https://github.com/python-graphblas/python-graphblas/pulls
Discussions https://github.com/python-graphblas/python-graphblas/discussions
Actions https://github.com/python-graphblas/python-graphblas/actions
Projects https://github.com/python-graphblas/python-graphblas/projects
Wiki https://github.com/python-graphblas/python-graphblas/wiki
Security https://github.com/python-graphblas/python-graphblas/security
Insights https://github.com/python-graphblas/python-graphblas/pulse
New issuehttps://github.com/login?return_to=https://github.com/python-graphblas/python-graphblas/issues/246
New issuehttps://github.com/login?return_to=https://github.com/python-graphblas/python-graphblas/issues/246
#257https://github.com/python-graphblas/python-graphblas/pull/257
Apply dict to map valueshttps://github.com/python-graphblas/python-graphblas/issues/246#top
#257https://github.com/python-graphblas/python-graphblas/pull/257
enhancementImprove existing functionality or make things work betterhttps://github.com/python-graphblas/python-graphblas/issues?q=state%3Aopen%20label%3A%22enhancement%22
lowpriorityhttps://github.com/python-graphblas/python-graphblas/issues?q=state%3Aopen%20label%3A%22lowpriority%22
https://github.com/eriknw
https://github.com/eriknw
eriknwhttps://github.com/eriknw
on May 23, 2022https://github.com/python-graphblas/python-graphblas/issues/246#issue-1245498059
enhancementImprove existing functionality or make things work betterhttps://github.com/python-graphblas/python-graphblas/issues?q=state%3Aopen%20label%3A%22enhancement%22
lowpriorityhttps://github.com/python-graphblas/python-graphblas/issues?q=state%3Aopen%20label%3A%22lowpriority%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.