From the course: Statistics and Python for Telecommunication: Using Data Analytics for Decision-Making in Modern Telecommunications

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Creating visuals in Python

Creating visuals in Python

(soft trilling music) - [Instructor] So in case of Python, what we need to do is, first of all, we need to import a library, which is used for plots, and that is matplotlib. Once we import the matplotlib, what we need to do is we need to then use our database. So we have this database, and once we run this, what we are going to do is we are going to make a histogram, okay? So let's use the plot. As we know, matplotlib is termed as a plt. So plt. what we want to do. We want to do the histogram, okay? So histogram, it gives automatically suggestion. And you just press the tab button and it'll plot something. But one interesting thing here, if you see with this plot, you don't have the binning or the groups made here. For that, what we need to do is we need to make a range, define a range here. So in the binning part, we need to define certain range. Then I again run this code. Now, next to that is box plot, okay? So we need to do plt.boxplot, okay? And then we just run this and what we…

Contents