René's URL Explorer Experiment


Title: can not draw barplot with x datetime axis. · Issue #130 · proplot-dev/proplot · GitHub

Open Graph Title: can not draw barplot with x datetime axis. · Issue #130 · proplot-dev/proplot

X Title: can not draw barplot with x datetime axis. · Issue #130 · proplot-dev/proplot

Description: Hi: Proplot is vary great package and hope to update continuously. I want to draw barplot, like the code: import pandas as pd import proplot as plot df = pd.DataFrame({'a': [0,1], 'date':[pd.to_datetime('2017-04-01'), pd.to_datetime('201...

Open Graph Description: Hi: Proplot is vary great package and hope to update continuously. I want to draw barplot, like the code: import pandas as pd import proplot as plot df = pd.DataFrame({'a': [0,1], 'date':[pd.to_dat...

X Description: Hi: Proplot is vary great package and hope to update continuously. I want to draw barplot, like the code: import pandas as pd import proplot as plot df = pd.DataFrame({'a': [0,1], 'date...

Opengraph URL: https://github.com/proplot-dev/proplot/issues/130

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"can not draw barplot with x datetime axis.","articleBody":"Hi:\r\n    Proplot is vary great package and hope to update continuously. I want to draw barplot, like the code:\r\n\r\n```\r\nimport pandas as pd\r\nimport proplot as plot\r\ndf = pd.DataFrame({'a': [0,1], 'date':[pd.to_datetime('2017-04-01'), pd.to_datetime('2017-04-02')]})\r\nf, axs = plot.subplots(ncols=1, figsize=(12, 6))\r\naxs[0].bar(df['date'], df['a'])\r\naxs.format(title=\"TEST\", xlabel='x axis', ylabel='y axis',\r\n           large=20, small=10, xlocator='year', xminorlocator='month', xformatter='%Y')\r\n```\r\n\r\nbut I get the fellowing error. So did i do anything wrong. Thanks very much.\r\n\r\n```\r\n---------------------------------------------------------------------------\r\nTypeError                                 Traceback (most recent call last)\r\n\u003cipython-input-83-7ba278c889ae\u003e in \u003cmodule\u003e\r\n      2 df = pd.DataFrame({'a': [0,1], 'date':[pd.to_datetime('2017-04-01'), pd.to_datetime('2017-04-02')]})\r\n      3 f, axs = plot.subplots(ncols=1, figsize=(12, 6))\r\n----\u003e 4 axs[0].bar(df['date'], df['a'])\r\n      5 axs.format(title=\"TEST\", xlabel='x axis', ylabel='y axis',\r\n      6            large=20, small=10, xlocator='year', xminorlocator='month', xformatter='%Y')\r\n\r\n~/anaconda3/lib/python3.7/site-packages/proplot/wrappers.py in _wrapper(self, *args, **kwargs)\r\n   3081         @functools.wraps(func)\r\n   3082         def _wrapper(self, *args, **kwargs):\r\n-\u003e 3083             return driver(self, func, *args, **kwargs)\r\n   3084         name = func.__name__\r\n   3085         if name not in proplot_methods:\r\n\r\n~/anaconda3/lib/python3.7/site-packages/proplot/wrappers.py in bar_wrapper(self, func, x, height, width, bottom, left, vert, orientation, stacked, lw, linewidth, edgecolor, **kwargs)\r\n   1166         linewidth=lw, edgecolor=edgecolor,\r\n   1167         stacked=stacked, orientation=orientation,\r\n-\u003e 1168         **kwargs\r\n   1169     )\r\n   1170 \r\n\r\n~/anaconda3/lib/python3.7/site-packages/proplot/wrappers.py in _wrapper(self, *args, **kwargs)\r\n   3081         @functools.wraps(func)\r\n   3082         def _wrapper(self, *args, **kwargs):\r\n-\u003e 3083             return driver(self, func, *args, **kwargs)\r\n   3084         name = func.__name__\r\n   3085         if name not in proplot_methods:\r\n\r\n~/anaconda3/lib/python3.7/site-packages/proplot/wrappers.py in standardize_1d(self, func, *args, **kwargs)\r\n    328     # WARNING: For some functions, e.g. boxplot and violinplot, we *require*\r\n    329     # cycle_changer is also applied so it can strip 'x' input.\r\n--\u003e 330     return func(self, x, *ys, *args, **kwargs)\r\n    331 \r\n    332 \r\n\r\n~/anaconda3/lib/python3.7/site-packages/proplot/wrappers.py in _wrapper(self, *args, **kwargs)\r\n   3081         @functools.wraps(func)\r\n   3082         def _wrapper(self, *args, **kwargs):\r\n-\u003e 3083             return driver(self, func, *args, **kwargs)\r\n   3084         name = func.__name__\r\n   3085         if name not in proplot_methods:\r\n\r\n~/anaconda3/lib/python3.7/site-packages/proplot/wrappers.py in add_errorbars(self, func, medians, means, boxes, bars, boxdata, bardata, boxstd, barstd, boxmarker, boxmarkercolor, boxrange, barrange, boxcolor, barcolor, boxlw, barlw, capsize, boxzorder, barzorder, *args, **kwargs)\r\n    822     else:\r\n    823         xy = (x, iy)  # just the stats\r\n--\u003e 824     obj = func(self, *xy, *args, **kwargs)\r\n    825     if not boxes and not bars:\r\n    826         return obj\r\n\r\n~/anaconda3/lib/python3.7/site-packages/proplot/wrappers.py in _wrapper(self, *args, **kwargs)\r\n   3081         @functools.wraps(func)\r\n   3082         def _wrapper(self, *args, **kwargs):\r\n-\u003e 3083             return driver(self, func, *args, **kwargs)\r\n   3084         name = func.__name__\r\n   3085         if name not in proplot_methods:\r\n\r\n~/anaconda3/lib/python3.7/site-packages/proplot/wrappers.py in cycle_changer(self, func, cycle, cycle_kw, label, labels, values, legend, legend_kw, colorbar, colorbar_kw, *args, **kwargs)\r\n   1662         if name in ('bar',):  # adjust\r\n   1663             if not stacked:\r\n-\u003e 1664                 ix = x + (i - ncols / 2 + 0.5) * width / ncols\r\n   1665             elif stacked and not is1d:\r\n   1666                 key = 'x' if barh else 'bottom'\r\n\r\n~/anaconda3/lib/python3.7/site-packages/pandas/core/ops/common.py in new_method(self, other)\r\n     62         other = item_from_zerodim(other)\r\n     63 \r\n---\u003e 64         return method(self, other)\r\n     65 \r\n     66     return new_method\r\n\r\n~/anaconda3/lib/python3.7/site-packages/pandas/core/ops/__init__.py in wrapper(left, right)\r\n    498         lvalues = extract_array(left, extract_numpy=True)\r\n    499         rvalues = extract_array(right, extract_numpy=True)\r\n--\u003e 500         result = arithmetic_op(lvalues, rvalues, op, str_rep)\r\n    501 \r\n    502         return _construct_result(left, result, index=left.index, name=res_name)\r\n\r\n~/anaconda3/lib/python3.7/site-packages/pandas/core/ops/array_ops.py in arithmetic_op(left, right, op, str_rep)\r\n    191         #  by dispatch_to_extension_op.\r\n    192         # Timedelta is included because numexpr will fail on it, see GH#31457\r\n--\u003e 193         res_values = dispatch_to_extension_op(op, lvalues, rvalues)\r\n    194 \r\n    195     else:\r\n\r\n~/anaconda3/lib/python3.7/site-packages/pandas/core/ops/dispatch.py in dispatch_to_extension_op(op, left, right)\r\n    123     # The op calls will raise TypeError if the op is not defined\r\n    124     # on the ExtensionArray\r\n--\u003e 125     res_values = op(left, right)\r\n    126     return res_values\r\n\r\nTypeError: unsupported operand type(s) for +: 'DatetimeArray' and 'float'\r\n```","author":{"url":"https://github.com/NMC-DAVE","@type":"Person","name":"NMC-DAVE"},"datePublished":"2020-03-10T01:54:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/130/proplot/issues/130"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:26361920-f4fe-ab65-066f-e79f9641d0ed
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE31E:B88B4:94C525:C065A5:697E5B5D
html-safe-noncec378c82d3221cf53d6cce8da226c29711cf047ac7b42adbbf77509edd0169684
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzFFOkI4OEI0Ojk0QzUyNTpDMDY1QTU6Njk3RTVCNUQiLCJ2aXNpdG9yX2lkIjoiNTQ1NjM5MDM3NjYwNjU1NDk3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac83b1b42097deae1207c64f2fd2c25a13920bb9762d1f9e9b902659d9c4ee7ddf
hovercard-subject-tagissue:578286319
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/proplot-dev/proplot/130/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fe197f2c621743794ac12d20c837c730dd68c2eb891ff5e9d866655ee0dc771c/proplot-dev/proplot/issues/130
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fe197f2c621743794ac12d20c837c730dd68c2eb891ff5e9d866655ee0dc771c/proplot-dev/proplot/issues/130
og:image:altHi: Proplot is vary great package and hope to update continuously. I want to draw barplot, like the code: import pandas as pd import proplot as plot df = pd.DataFrame({'a': [0,1], 'date':[pd.to_dat...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameNMC-DAVE
hostnamegithub.com
expected-hostnamegithub.com
None60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6
turbo-cache-controlno-preview
go-importgithub.com/proplot-dev/proplot git https://github.com/proplot-dev/proplot.git
octolytics-dimension-user_id108025793
octolytics-dimension-user_loginproplot-dev
octolytics-dimension-repository_id113293661
octolytics-dimension-repository_nwoproplot-dev/proplot
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id113293661
octolytics-dimension-repository_network_root_nwoproplot-dev/proplot
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
release7c85641c598ad130c74f7bcc27f58575cac69551
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/proplot-dev/proplot/issues/130#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fproplot-dev%2Fproplot%2Fissues%2F130
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%2Fproplot-dev%2Fproplot%2Fissues%2F130
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=proplot-dev%2Fproplot
Reloadhttps://github.com/proplot-dev/proplot/issues/130
Reloadhttps://github.com/proplot-dev/proplot/issues/130
Reloadhttps://github.com/proplot-dev/proplot/issues/130
proplot-dev https://github.com/proplot-dev
proplothttps://github.com/proplot-dev/proplot
Notifications https://github.com/login?return_to=%2Fproplot-dev%2Fproplot
Fork 97 https://github.com/login?return_to=%2Fproplot-dev%2Fproplot
Star 1.1k https://github.com/login?return_to=%2Fproplot-dev%2Fproplot
Code https://github.com/proplot-dev/proplot
Issues 88 https://github.com/proplot-dev/proplot/issues
Pull requests 7 https://github.com/proplot-dev/proplot/pulls
Discussions https://github.com/proplot-dev/proplot/discussions
Actions https://github.com/proplot-dev/proplot/actions
Projects 0 https://github.com/proplot-dev/proplot/projects
Security 0 https://github.com/proplot-dev/proplot/security
Insights https://github.com/proplot-dev/proplot/pulse
Code https://github.com/proplot-dev/proplot
Issues https://github.com/proplot-dev/proplot/issues
Pull requests https://github.com/proplot-dev/proplot/pulls
Discussions https://github.com/proplot-dev/proplot/discussions
Actions https://github.com/proplot-dev/proplot/actions
Projects https://github.com/proplot-dev/proplot/projects
Security https://github.com/proplot-dev/proplot/security
Insights https://github.com/proplot-dev/proplot/pulse
New issuehttps://github.com/login?return_to=https://github.com/proplot-dev/proplot/issues/130
New issuehttps://github.com/login?return_to=https://github.com/proplot-dev/proplot/issues/130
#156https://github.com/proplot-dev/proplot/pull/156
can not draw barplot with x datetime axis.https://github.com/proplot-dev/proplot/issues/130#top
#156https://github.com/proplot-dev/proplot/pull/156
bughttps://github.com/proplot-dev/proplot/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/NMC-DAVE
https://github.com/NMC-DAVE
NMC-DAVEhttps://github.com/NMC-DAVE
on Mar 10, 2020https://github.com/proplot-dev/proplot/issues/130#issue-578286319
bughttps://github.com/proplot-dev/proplot/issues?q=state%3Aopen%20label%3A%22bug%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.