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



Download 2,61 Mb.
bet191/200
Sana20.06.2022
Hajmi2,61 Mb.
#681748
1   ...   187   188   189   190   191   192   193   194   ...   200
Bog'liq
Python Projects for Beginners A Ten Week Bootcamp Approach to Python

Types of Charts


Knowing which chart to use is important in presenting your data properly. We’ll go over several charts today; however, these are some of the common charts you’ll want to know:

  • Line Chart: Exploring data over time

  • Bar Chart: Comparing categories of data and tracks changes over time

  • Pie Chart: Explores parts of a whole, that is, fractions

  • Scatter Plot: Like line charts, tracks correlations between two categories

  • Histogram: Unrelated from bar charts, shows distribution of variables

  • Candlestick Chart: Used a lot in financial sector, that is, can compare a stock over a period

  • Box Chart: Looks identical to candlestick charts, and compares minimum, 1st, median, 3rd quartiles, and max values

Depending on what you need to accomplish in conceptualizing your data, you will be able to choose a specific type of chart to portray your data.

Installing Matplotlib


To install matplotlib, make sure your virtual environment is activated first, then write the following command into the terminal:

$ pip install matplotlib

After running the command, it should install a few packages that matplotlib requires. If you’d like to check and make sure you downloaded the proper library, just write out the list command.
CHapter 10 INtroduCtIoN to data aNalYsIs

Importing Matplotlib


To follow along with the rest of this lesson, let’s open and continue from our previous notebook file “Week_10” and simply add a markdown cell at the bottom that says, “Matplotlib.”
Like Pandas, matplotlib has an industry standard name when you import the library:

# importing the matplotlib library from matplotlib import pyplot as plt # industry standard name of plt when importing

Go ahead and run the cell. We import pyplot as plt so that we can reference the many charts that matplotlib has to offer.

Download 2,61 Mb.

Do'stlaringiz bilan baham:
1   ...   187   188   189   190   191   192   193   194   ...   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