Title: Sorting of data in py27 is not working · Issue #19 · stonerlab/Stoner-PythonCode · GitHub
Open Graph Title: Sorting of data in py27 is not working · Issue #19 · stonerlab/Stoner-PythonCode
X Title: Sorting of data in py27 is not working · Issue #19 · stonerlab/Stoner-PythonCode
Description: Following code is not working in Python 2.7 (and also data.sort()...) from Stoner import Data import numpy as np data=Data('test2.txt') np.sort(data.records) Produces: AttributeError: 'list' object has no attribute 'dtype' I think now it...
Open Graph Description: Following code is not working in Python 2.7 (and also data.sort()...) from Stoner import Data import numpy as np data=Data('test2.txt') np.sort(data.records) Produces: AttributeError: 'list' object...
X Description: Following code is not working in Python 2.7 (and also data.sort()...) from Stoner import Data import numpy as np data=Data('test2.txt') np.sort(data.records) Produces: AttributeError: '...
Opengraph URL: https://github.com/stonerlab/Stoner-PythonCode/issues/19
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sorting of data in py27 is not working","articleBody":"Following code is not working in Python 2.7 (and also data.sort()...)\r\n```\r\nfrom Stoner import Data\r\nimport numpy as np\r\ndata=Data('test2.txt')\r\nnp.sort(data.records)\r\n```\r\nProduces: \r\n\u003e AttributeError: 'list' object has no attribute 'dtype'\r\n\r\nI think now it is not a problem with datafile. In Python 3 it is working fine.\r\n\r\n[test2.txt](https://github.com/gb119/Stoner-PythonCode/files/2137292/test2.txt)","author":{"url":"https://github.com/me2d09","@type":"Person","name":"me2d09"},"datePublished":"2018-06-26T13:25:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/19/Stoner-PythonCode/issues/19"}
| 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:1ae27a60-65a3-6e91-87c1-8a12f07511d2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A1B8:12210E:21BC2A:2DCEAA:698E2C1D |
| html-safe-nonce | 145bf979b933cc6b1f5c4ed71971dc33223c5b07f50200bb4b9e9f74844969ca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUI4OjEyMjEwRToyMUJDMkE6MkRDRUFBOjY5OEUyQzFEIiwidmlzaXRvcl9pZCI6IjIzMTQzMzkzODQwMDkwNDI5NzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a3f10dd0cd18a6f4930e9a4897e5d09291dccf5783f9f3a01b53643288cc29e4 |
| hovercard-subject-tag | issue:335818382 |
| 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/stonerlab/Stoner-PythonCode/19/issue_layout |
| twitter:image | https://opengraph.githubassets.com/105ddcd1a7ffc766df842be86a6a495c4e74d29eadf0473e8164b9189dc29d9a/stonerlab/Stoner-PythonCode/issues/19 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/105ddcd1a7ffc766df842be86a6a495c4e74d29eadf0473e8164b9189dc29d9a/stonerlab/Stoner-PythonCode/issues/19 |
| og:image:alt | Following code is not working in Python 2.7 (and also data.sort()...) from Stoner import Data import numpy as np data=Data('test2.txt') np.sort(data.records) Produces: AttributeError: 'list' object... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | me2d09 |
| hostname | github.com |
| expected-hostname | github.com |
| None | a5632af64f7fed7bff1d6a428d1aca1b94fa7a48f760de2d39d9b1effdbf0082 |
| turbo-cache-control | no-preview |
| go-import | github.com/stonerlab/Stoner-PythonCode git https://github.com/stonerlab/Stoner-PythonCode.git |
| octolytics-dimension-user_id | 53544403 |
| octolytics-dimension-user_login | stonerlab |
| octolytics-dimension-repository_id | 10057055 |
| octolytics-dimension-repository_nwo | stonerlab/Stoner-PythonCode |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 10057055 |
| octolytics-dimension-repository_network_root_nwo | stonerlab/Stoner-PythonCode |
| 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 | 2f1e729d231ea1ea5a098d21f1491b75bea53631 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width