Title: Air pollution tutorial should show path to "vectorization" · Issue #152 · numpy/numpy-tutorials · GitHub
Open Graph Title: Air pollution tutorial should show path to "vectorization" · Issue #152 · numpy/numpy-tutorials
X Title: Air pollution tutorial should show path to "vectorization" · Issue #152 · numpy/numpy-tutorials
Description: The air polution tutorial has a "vectorized" function to calculte the AIQ (IIRC). This can be vectorized using searchsorted (which is a bit much work, but not too tricky). I am also almost completely certain that it can also be replaced ...
Open Graph Description: The air polution tutorial has a "vectorized" function to calculte the AIQ (IIRC). This can be vectorized using searchsorted (which is a bit much work, but not too tricky). I am also almost complete...
X Description: The air polution tutorial has a "vectorized" function to calculte the AIQ (IIRC). This can be vectorized using searchsorted (which is a bit much work, but not too tricky). I am also almos...
Opengraph URL: https://github.com/numpy/numpy-tutorials/issues/152
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Air pollution tutorial should show path to \"vectorization\"","articleBody":"The air polution tutorial has a \"vectorized\" function to calculte the AIQ (IIRC). This can be vectorized using `searchsorted` (which is a bit much work, but not too tricky).\r\nI am also almost completely certain that it can also be replaced with a single call to `np.interp1d`.\r\n\r\nHaving the \"vectorize\" version seems good, but doesn't fully leverage the concepts that NumPy provides. I think it would be great arc to keep it, but then also show the final `interp` and maybe even the `searchsorted` idea. (I honestly don't like stopping at `vectorize` becuzse it makes seems that `vectorize` is a common approach, when I consider it more of a fallback solution – whether used a lot in practice or not.)","author":{"url":"https://github.com/seberg","@type":"Person","name":"seberg"},"datePublished":"2022-11-01T10:48:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/152/numpy-tutorials/issues/152"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8fb27a19-e6f8-824c-3f74-25e2b4c10089 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D590:2D9AC6:9FEA951:D500BA7:696E20D5 |
| html-safe-nonce | 934a688bc78d1c8c30867682d4f201da502ff86f3cef84ccd3873532e4a604b8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTkwOjJEOUFDNjo5RkVBOTUxOkQ1MDBCQTc6Njk2RTIwRDUiLCJ2aXNpdG9yX2lkIjoiNTA4ODM4NDk1MTQ4MDM2MTE3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b7b645cbac3b205e480b9d3d4ad28f984c2ebe2ba2b67ade627600ce20e2d930 |
| hovercard-subject-tag | issue:1431231038 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/numpy/numpy-tutorials/152/issue_layout |
| twitter:image | https://opengraph.githubassets.com/89db17aa10cf0ccb5ec207322fba3abe742ebfe043594e8a9a42cb0221695b79/numpy/numpy-tutorials/issues/152 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/89db17aa10cf0ccb5ec207322fba3abe742ebfe043594e8a9a42cb0221695b79/numpy/numpy-tutorials/issues/152 |
| og:image:alt | The air polution tutorial has a "vectorized" function to calculte the AIQ (IIRC). This can be vectorized using searchsorted (which is a bit much work, but not too tricky). I am also almost complete... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | seberg |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2fbe8cba5e260284c10af515699ff9bb2d6ace05ab6c2e2e585b71d93b2812c3 |
| turbo-cache-control | no-preview |
| go-import | github.com/numpy/numpy-tutorials git https://github.com/numpy/numpy-tutorials.git |
| octolytics-dimension-user_id | 288276 |
| octolytics-dimension-user_login | numpy |
| octolytics-dimension-repository_id | 248354526 |
| octolytics-dimension-repository_nwo | numpy/numpy-tutorials |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 248354526 |
| octolytics-dimension-repository_network_root_nwo | numpy/numpy-tutorials |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7fb3bc5c995a876085291706b75cf9b08900c338 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width