Title: Pandas 0.25 breaks tests · Issue #14859 · matplotlib/matplotlib · GitHub
Open Graph Title: Pandas 0.25 breaks tests · Issue #14859 · matplotlib/matplotlib
X Title: Pandas 0.25 breaks tests · Issue #14859 · matplotlib/matplotlib
Description: @jklymak Thanks! And yes, it's the pandas 0.25.0 that causes the failure, 0.24.2 was fine. Can we change the test_bar_pandas(pd) to following to avoid this failure? def test_bar_pandas(pd): # Smoke test for pandas pd.plotting.register_ma...
Open Graph Description: @jklymak Thanks! And yes, it's the pandas 0.25.0 that causes the failure, 0.24.2 was fine. Can we change the test_bar_pandas(pd) to following to avoid this failure? def test_bar_pandas(pd): # Smoke...
X Description: @jklymak Thanks! And yes, it's the pandas 0.25.0 that causes the failure, 0.24.2 was fine. Can we change the test_bar_pandas(pd) to following to avoid this failure? def test_bar_pandas(pd): # S...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/14859
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pandas 0.25 breaks tests","articleBody":"@jklymak Thanks! And yes, it's the pandas 0.25.0 that causes the failure, 0.24.2 was fine.\r\n\r\nCan we change the `test_bar_pandas(pd)` to following to avoid this failure?\r\n\r\n```python\r\ndef test_bar_pandas(pd):\r\n # Smoke test for pandas\r\n pd.plotting.register_matplotlib_converters()\r\n fig, ax = plt.subplots()\r\n\r\n df = pd.DataFrame(\r\n {'year': [2018, 2018, 2018],\r\n 'month': [1, 1, 1],\r\n 'day': [1, 2, 3],\r\n 'value': [1, 2, 3]})\r\n df['date'] = pd.to_datetime(df[['year', 'month', 'day']])\r\n\r\n monthly = df[['date', 'value']].groupby(['date']).sum()\r\n dates = monthly.index\r\n forecast = monthly['value']\r\n baseline = monthly['value']\r\n ax.bar(dates, forecast, width=10, align='center')\r\n ax.plot(dates, baseline, color='orange', lw=4)\r\n pd.plotting.deregister_matplotlib_converters()\r\n```\r\n\r\ni.e. register at beginning and deregister at the end.\r\n\r\n_Originally posted by @bingyao in https://github.com/matplotlib/matplotlib/pull/14739#issuecomment-513235994_","author":{"url":"https://github.com/jklymak","@type":"Person","name":"jklymak"},"datePublished":"2019-07-19T14:08:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/14859/matplotlib/issues/14859"}
| 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:d2e953da-6f13-6139-5d19-752693b74575 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ADAC:33E8D:3560A03:4C4DCDF:6A568EA1 |
| html-safe-nonce | a64857ccefbf5089d99f5cc5e51b6db9b308f30cfa9bd1e4b409c6c5193cbd66 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREFDOjMzRThEOjM1NjBBMDM6NEM0RENERjo2QTU2OEVBMSIsInZpc2l0b3JfaWQiOiI0NzMyMzQxNjU3NzA2NTMzNDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9f330c9048c08c5b95e34d7a44cee9e7cc671debe9ff77268005e48e27b9bbc9 |
| hovercard-subject-tag | issue:470345517 |
| 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/14859/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a7ba66ccf112200e1c7c657a9204149ff0afd49a693b321714917657aab3e2e4/matplotlib/matplotlib/issues/14859 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a7ba66ccf112200e1c7c657a9204149ff0afd49a693b321714917657aab3e2e4/matplotlib/matplotlib/issues/14859 |
| og:image:alt | @jklymak Thanks! And yes, it's the pandas 0.25.0 that causes the failure, 0.24.2 was fine. Can we change the test_bar_pandas(pd) to following to avoid this failure? def test_bar_pandas(pd): # Smoke... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jklymak |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8f21be8503ba8fe6154df415b855c03af52eae3f285bd6ae1fef041dc053da38 |
| 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 | 78af172a48a2056810bb627ffa684003e4f9a5ca |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width