Documentation for Understat
understat·@amosbastian·
0.000 HBDDocumentation for Understat
<center>  <sup> https://github.com/amosbastian/understat </sup> </center> ### What is **Understat**? It's a Python wrapper for the website [Understat](https://understat.com/), which provides revolutionary football metrics multiple leagues. An example of this is expected goals (xG), which is the main new revolutionary football metric, and allows you to evaluate team and player performance. In a low-scoring game such as football, the final score does not really provide a clear picture of the teams' performances, and this is why more and more sports analytics turn to the advanced models like xG, which is a statistical measure of the quality of chances created and conceded. Understat's goal was to create the most precise method for shot quality evaluation. They did this by training neural network prediction algorithms with a large dataset (>100,000 shots, over 10 parameters for each), and have now made this data available for the public! --- Yesterday I posted about [a small update](https://steemit.com/understat/@amosbastian/a-small-update-to-understat), and in there I mentioned I had written some documentation for it as well. In this post I'll detail what kind of documentation I added exactly! https://github.com/amosbastian/understat/pull/2 The pull request also includes the functions I added, so I'm sorry for that. You can find the changes relevant to this update in the `.rst` files. Basically I added documentation for all the functions in the Understat class, and also some documentation about installing and contributing, which I copied from the documentation of my other package, **fpl**: https://understat.readthedocs.io/en/latest/ ### Homepage <center>  </center> I've added a basic example showing how to use **understat** with `asyncio` and `aiohttp`. I've also added three sections, one for installing it, one for all the functions in the Understat class, and another about contributing. ### Installation <center>  <sup>https://understat.readthedocs.io/en/latest/user/installation.html</sup> </center> As you may expect, installing a Python package isn't exactly difficult, and so I've just copied the instructions from **fpl**'s documentation, and changed all references to **fpl** to **understat**. ### The functions <center> ](https://i.imgur.com/uAwcdEQ.png) <sup>Documentation for the `get_teams()` function. See: https://understat.readthedocs.io/en/latest/classes/understat.html for the rest of the documentation.</sup> </center> Unlike the other parts of the documentation this was made completely from scratch. Since there isn't an API, it's pretty important for people to understand what kind of information they are getting and in what kind of format. Because of this I've added usage examples for *every* function, with also example output. Of course this means there is A LOT of documentation for people to go through, but I think this was the best way of doing it. Now they don't have to run the functions themselves to see what the output is, and can simply check the documentation for a reference. As you can see in the image above (showing an example of the documentation for **1** of the functions), I've also included screenshots taken on https://understat.com/ to show people, who are probably used to using the website, the equivalent data found on there. I also think this will give a good idea to users of what to expect from the output, and so they'll understand the functions easier and more quickly. ### Contributing <center>  <sup>https://understat.readthedocs.io/en/latest/contributing/contributing.html</sup> </center> Just like the installation section, this was copied completely from my other package **fpl**. Not much to say here because of that, but hopefully it will help people if they are interested in contributing. ### Roadmap I'm going to be posting about it on Reddit today, so hopefully I will get some more people interested in using it (and maybe also contributing). Maybe they will even come up with some suggestions as well, and depending on the feedback received the roadmap will change, so I'll wait and see.
👍 rufans, gregory.latinier, sargoon, fego, kalasuut, jacksartori, friedradius, gracefulestrogen, wombtick, molly.smith, kendip, publicchord, rulesgemini, pointingevasive, celsiusdelete, sergeyvoronov, andrey.levin92, pataty69, helgapn, enlighted, munhenhos, bhaski, ipuiclide, semedrona, arablonti, neattor, romadano, itons, ersishads, immot, ratororer, coonoff, lorit, supu, accelerator, photocircle, vortac, vannour, arsisors, masit, unsarted, evarash, kowadisse, itestoras, yesse8, onouscus, atororen, lirit, sendisou, amosbastian, tobias-g, jaff8, espoem, mops2e, ascorphat, ayay, codingdefined, steemtank, revisesociology, shammi, fortune-master, piaristmonk, dimitrisp, ajayyy, portugalcoin, zcool, sttest1, sttest2, snackaholic, steemitri, luc.real, roxane, ceruleanblue, alvinvoo, favcau, loshcat, greenorange, lordneroo, miniature-tiger, blockchainstudio, lostmine27, steem-plus, tolgahanuzun, knowledges, aboutcoolscience, itastem, alexzicky, davinci.times, davinci.pay, destrudo, davinci.witness, mondodidave73, davinci.polyglot, davinci.art, davinci.vote, silviu93, dakeshi, nicejob, spaghettiscience, phage93, stream-master, gentleprince95, photo-it, akireuna, aristotle.team, knfitaly, rscalabrini, giornalista, paololuffy91, imcesca, drifter1, cryptomaniacsgr, steam.erotic, robertbira, onin91, jga, utopian.trail, walnut1, tykee, vishalsingh4997, elear, zoneboy, mcyusuf, gentleshaid, aussieninja, jubreal, rollthedice, bflanagin, jk6276, dssdsds, jayplayco, stem-espanol, mrsbozz, jk6276.mons, jaxson2011, eternalinferno, techslut, minersean, erikaflynn, jakipatryk, suesa, che-shyr, didic, tsoldovieri, iamphysical, felixrodriguez, azulear, carloserp-2000, vjap55, eliaschess333, miguelangel2801, emiliomoron, ulisesfl17, arac, tomastonyperez, elvigia, luiscd8a, elpdl, josedelacruz, joseangelvs, viannis, erickyoussif, yusvelasquez, reinaseq, lupafilotaxia, fran.frey, alfonzoasdrubal, aleestra, giulyfarci52, lorenzor, ivymalifred, andrick, joelsegovia, jesusfl17, amart29, jrevilla, wilmer14molina, alaiza, lapp, steemtpistia, crassipes, agrovision, rewarding, vanarchist, flores39, tdre, steem-ua, newsrx, dalz, amestyj, eniolw, geadriana, alexs1320, scienceangel, yu-stem, alex-hm, ennyta, anaestrada12, carlos84, sandracarrascal, douglimarbalzan, gaming.yer, steem-familia, evangelista.yova, jenniferjulieth, ajfernandez, endopediatria, ingmarvin, alix96, elimao, antunez25, haf67, chavas, uzcateguiazambra, asmeira, mgarrillogonzale, rubenp, jeferc, hirally, eugenialobo, jcmontilva, rodriguezr, marbely20, moyam, emilycg, darys, sibaja, balcej, anaka, lmanjarres, benhurg, judisa, juddarivv, mariamo, kimmorales, loraine25, jjay, ryuna.siege, themarkymark, pjau, utopian-io, tombstone, cryptouno, swapsteem,