BlogScripts | Random scripts posted for my blog at http : //aka.ms/goateepfe
kandi X-RAY | BlogScripts Summary
kandi X-RAY | BlogScripts Summary
Random scripts posted for my blog at
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of BlogScripts
BlogScripts Key Features
BlogScripts Examples and Code Snippets
Community Discussions
Trending Discussions on BlogScripts
QUESTION
That's my first post here. I'm doing a project in Python about Football Scores statistics and prediction. I got the ideas from this project and I was trying to recreate it, but it gives me an error like this
I'm re-writing the code for my needs, but even if I do a copy and paste of the original one, it gives me the same error, while in the original post it seems to go all good.
That's the part of code incriminated:
...ANSWER
Answered 2019-Jan-10 at 16:11The problem is that your arrays for the bar plot are 2d arrays and you have to flatten them. This can be easily done using .flatten()
which converts the 2d arrays in your code into 1-d arrays. If you look at chel_home.values
, it looks like
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install BlogScripts
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page