+ 2
Made specific data ?
https://code.sololearn.com/cJrtNl1gdsKH/#py Hi guys ! I'm a beginner in coding and I need your help here please. I made this litlle code who simulate a NBA match based on some randomly based data. But i want to improve a little bit the code. In fact, is it possible to stock the data (number of shoots (2pts, 3pts and FT), accuracy (2pts, 3pts and FT)) for each team of NBA ? With that, when I run the code, I have to choose what match with which teams i want to simulate and the program take the specific data of the specific chosen teams for simulate the match ? Thanks for your help ! GregGS
4 Respuestas
+ 4
yes, you can find a site where that info is held, and scrape it using the requests module and Beautiful Soup module to parse the html
+ 4
yes! using the csv module you can make a spreadsheet with all the data you collect (with a csv writer and reader). If youre interested in data science, then after a bit you may want to check out the numpy module and the pandas module as well, both insanly useful for data collection, organization, and manipulation.
+ 3
Yes, I heard about that different module. It is part of the programming coding who interest me and I'm curious to discover numpy and panda later in my formation !
+ 2
Hello slick !
Thanks for your response. Unfortunately i think it is above my current limited skill. I need to continue to discover new things in lessons.
But just for curiosity, is it possible to do the same thing with an Excel file ?