Title: poor categorical support w/ numpy<1.8 · Issue #7988 · matplotlib/matplotlib · GitHub
Open Graph Title: poor categorical support w/ numpy<1.8 · Issue #7988 · matplotlib/matplotlib
X Title: poor categorical support w/ numpy<1.8 · Issue #7988 · matplotlib/matplotlib
Description: Numpy versions < 1.8 play poorly with arrays of mixed type, truncating anything not of type string to the length of the longest string. This is inhibiting #7974 So the issue is as follows >>> import numpy as np >>> np.__version__ '1.7.1'...
Open Graph Description: Numpy versions < 1.8 play poorly with arrays of mixed type, truncating anything not of type string to the length of the longest string. This is inhibiting #7974 So the issue is as follows >>> impor...
X Description: Numpy versions < 1.8 play poorly with arrays of mixed type, truncating anything not of type string to the length of the longest string. This is inhibiting #7974 So the issue is as follows >&g...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/7988
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"poor categorical support w/ numpy\u003c1.8","articleBody":"Numpy versions \u003c 1.8 play poorly with arrays of mixed type, truncating anything not of type string to the length of the longest string. This is inhibiting #7974 \r\n\r\nSo the issue is as follows\r\n```python\r\n\u003e\u003e\u003e import numpy as np\r\n\u003e\u003e\u003e np.__version__\r\n'1.7.1'\r\n\u003e\u003e\u003e np.array(['A', 'A', np.nan, 'B', -np.inf, 3.14], dtype=np.unicode)\r\narray([u'A', u'A', u'n', u'B', u'-', u'3'], \r\n dtype='\u003cU1')\r\n```\r\n\r\ntwo possible solutions:\r\n1) Fold back in shims removed in #7484 that existed mainly to solve this problem\r\n2) throw a warning if category.py is imported with a numpy\u003c1.8 and skip tests for numpy\u003c1.8\r\n\r\nThe advantage of 2 is it keeps the code cleaner and this is an edge case of sorts because it's only an issue when the array is of mixed type (strings and numbers). The advantage of 1 is of course edge case support on older systems. ","author":{"url":"https://github.com/story645","@type":"Person","name":"story645"},"datePublished":"2017-01-30T06:18:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/7988/matplotlib/issues/7988"}
| 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:02e898f7-2c0c-182e-1c66-696744139ff0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D5C6:315A46:745529:9F9BED:6A55A727 |
| html-safe-nonce | 2a95dc4eb6fd6d2e15e238a646985141e581b69dc1595b6912d124e1cbbb855f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENUM2OjMxNUE0Njo3NDU1Mjk6OUY5QkVEOjZBNTVBNzI3IiwidmlzaXRvcl9pZCI6IjUyMzc4ODE2NjQ4NzM4MDE1MTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a5d938f632b303139c86d13090f057a91b7ea6b55d369e854ee8d4f4ca614070 |
| hovercard-subject-tag | issue:203934815 |
| 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/matplotlib/matplotlib/7988/issue_layout |
| twitter:image | https://opengraph.githubassets.com/45492ee257c03340f52d112620039013054038e86cadfc3e6d84a466f6ec5f93/matplotlib/matplotlib/issues/7988 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/45492ee257c03340f52d112620039013054038e86cadfc3e6d84a466f6ec5f93/matplotlib/matplotlib/issues/7988 |
| og:image:alt | Numpy versions < 1.8 play poorly with arrays of mixed type, truncating anything not of type string to the length of the longest string. This is inhibiting #7974 So the issue is as follows >>> impor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | story645 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| 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 | 653fccf1e27344851c0d3de3fa6faa526197f072 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width