Python Projects for Beginners a ten-Week Bootcamp Approach to Python Programming



Download 2,61 Mb.
bet197/200
Sana20.06.2022
Hajmi2,61 Mb.
#681748
1   ...   192   193   194   195   196   197   198   199   200
Bog'liq
Python Projects for Beginners A Ten Week Bootcamp Approach to Python

Figure 10-8. Rendering a 3D plot using color as the third dimension

WEDNESDAY EXERCISES


  1. Three Line Plot: Create three random lists of data that have 20 numbers between 1 and 10. then create a line plot with three lines, one for each list. Give each line their own color, dot symbol, and line style.

  2. User Information: Create a program that asks any number of users to give a rating between 1 and 5 stars and plots a bar chart of the data when no more users would like to answer. use the following text as an example of what to ask:

>>> What would you rate this movie (1-5)? 4
>>> Is there another user that would like to review (y/n)? y
>>> What would you rate this movie (1-5)? 5
>>> Is there another user that would like to review (y/n)? n

*** bar plot renders with two categories and two ratings ***
today we learned the importance of data visualization and how to create custom charts to show off our data properly. there’s a wide range of plots to choose from when using matplotlib, and each have their own pros and cons which you need to consider when choosing the type of plot. In the end, if you can’t properly show the data to those making the business decisions, then all the data you’ve collected is wasted.
Thursday: Web Scraping
You may have heard the term “web scraping” previously. In most languages like Python, web scraping is comprised of two parts: sending out a request and parsing the data. We’ll need to use the requests module for the first part and a library called Beautiful Soup for the second part. In a nutshell, the script you write to request data and parse it is called a “scraper.” For today’s lesson, we’ll be collecting some data using these two libraries.
Like yesterday’s lesson, we need to install a library into our virtual environment. To follow along with today’s lesson, cd into the “python_bootcamp” folder, and activate the environment. We’ll begin today within the terminal.

Download 2,61 Mb.

Do'stlaringiz bilan baham:
1   ...   192   193   194   195   196   197   198   199   200




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish