Creating bar charts and box plots based on matplotlib ans NumPy arrays

Creating bar chart:

In this section, at the first step, the bar chart will be created based on COVID-19 dataset at the county level for state of South Carolina by using Pandas dataframe and matplotlib. Similar to previous section, data-sc.csv file needs to be uploaded into the Google Colab environment. Then dataset is sorted in the descending order based on number of cases in different counties and finally the bar chart is created for the first top 10 counties that have the highest number of COVID-19 cases:

The final bar chart visualization is shown here that shows the number of COVID-19 cases in each county sorted in the descending order:

Creating box plots:

Box plots are useful for comparing numerical values of two different categories. In the breast cancer dataset (Breast-Cancer-Data.csv file) we have numerical values for different parameters such as mean area of benign and malignant cells. Note that to upload Breast-Cancer-Data.csv into the Google Colab notebook similar to the previous sections. As a result, we use box plot to compare the mean area in these two different groups as:

The final box plot of mean area in benign and malignant classes is shown here that shows mean area is relatively higher in benign cells: