Skip to main content

Exploratory Data Analysis using Python

Another post starts with you beautiful people!
In my previous posts and pages we have learnt basics and advanced topics of Python required in Data Science.
Now it's time to do EDA, sounds interesting!

Exploratory Data Analysis (EDA) is a crucial step of the data analytics process.
It involves exploring the data and identifying important features about the data as well as asking interesting questions from the data by using statistical and visualization tools studied in earlier classes such as descriptive statistics and basic plotting.

In this post we will use the dataset about TB data on countries and their territories.
Specifically, we would using data files for TB Deaths, spread of TB, and number of new cases of TB to answer some important questions.

Since we are going to perform some Exploratory Data Analysis in our TB dataset, these are the questions we want to answer:

  • Which are the countries with the highest and infectious TB incidence?
  • What is the general world tendency in the period from 1990 to 2007?
  • What countries don't follow that tendency?
  • What other facts about the disease do we know that we can check with our data?
First set the local path where you want to put files for example I am using-

Second, import required libraries-

Next, we will get our dataset from the internet resource and save those in our local disk-

For more details about urllib.request library please visit here- tell me more about urllib.request
After the above step the dataset will be saved in your local path as csv files and we are ready to use these datasets.

Now we will read the csv files and do some beautification -

After this let's explore few data-

or


Result:-

If you want to check percentage change in existing cases over the years-

Let us look at curious case of Spain. What do you infer?

Let us go ahead and do some plotting-

How about box-plots-

Which country has the highest number of existing and new TB cases?

Result:


What about world trends?

Result:


What about specific countries?


Result:

Let us think about outlier countries-

Proportions of countries as outlier-

Filter the data frame:-


Result:


What do you infer from above dataset? Can we somehow combine all of that information?

Compare this with rest of world:-


Result:


What about percentage change?

Result:-

Let's see TB cases in China-

Hope you enjoyed today' learning.
If you are reading and practicing these learnings then no doubt you are a future data scientist.
Last but not the least as a data scientist- ASK THE RIGHT QUESTION !

Comments

  1. It was really a nice article and i was really impressed by reading this Data Science online Course

    ReplyDelete
  2. Thank you so much for this nice information. Hope so many people will get aware of this and useful as well. And please keep update like this.

    Text Analytics Software

    Text Summarization Solutions

    ReplyDelete
  3. It's late finding this act. At least, it's a thing to be familiar with that there are such events exist. I agree with your Blog and I will be back to inspect it more in the future so please keep up your act.data science course in malaysia

    ReplyDelete
  4. Thanks for providing such a valuable Knowledge on Data Analysis With Python. I have learned many things with this blog. Keep sharing.Very knowledgeable Blog.

    ReplyDelete
  5. Incredibly conventional blog and articles. I am realy very happy to visit your blog. Directly I am found which I truly need. Thankful to you and keeping it together for your new post.
    data scientist course in malaysia

    ReplyDelete
  6. Incredibly conventional blog and articles. I am realy very happy to visit your blog. Directly I am found which I truly need. Thankful to you and keeping it together for your new post.
    data scientist course in malaysia

    ReplyDelete
  7. This is my first time visit here. From the tremendous measures of comments on your articles.I deduce I am not only one having all the fulfillment legitimately here!
    artificial intelligence training aurangabad

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. Join now for the intense Python Training in Hyderabad program at AI Patasala to become an early leader in this trending platform.
    Python Certification in Hyderabad

    ReplyDelete

Post a Comment

Popular posts from this blog

How to deploy your ML model as Fast API?

Another post starts with you beautiful people! Thank you all for showing so much interests in my last posts about object detection and recognition using YOLOv4. I was very happy to see many aspiring data scientists have learnt from my past three posts about using YOLOv4. Today I am going to share you all a new skill to learn. Most of you have seen my post about  deploying and consuming ML models as Flask API   where we have learnt to deploy and consume a keras model with Flask API  . In this post you are going to learn a new framework-  FastAPI to deploy your model as Rest API. After completing this post you will have a new industry standard skill. What is FastAPI? FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python type hints. It is easy to learn, fast to code and ready for production . Yes, you heard it right! Flask is not meant to be used in production but with FastAPI you can use your model in production wi

How to use opencv-python with Darknet's YOLOv4?

Another post starts with you beautiful people 😊 Thank you all for messaging me your doubts about Darknet's YOLOv4. I am very happy to see in a very short amount of time my lovely aspiring data scientists have learned a state of the art object detection and recognition technique. If you are new to my blog and to computer vision then please check my following blog posts one by one- Setup Darknet's YOLOv4 Train custom dataset with YOLOv4 Create production-ready API of YOLOv4 model Create a web app for your YOLOv4 model Since now we have learned to use YOLOv4 built on Darknet's framework. In this post, I am going to share with you how can you use your trained YOLOv4 model with another awesome computer vision and machine learning software library-  OpenCV  and of course with Python 🐍. Yes, the Python wrapper of OpenCV library has just released it's latest version with support of YOLOv4 which you can install in your system using below command- pip install opencv-python --up

How to install and compile YOLO v4 with GPU enable settings in Windows 10?

Another post starts with you beautiful people! Last year I had shared a post about  installing and compiling Darknet YOLOv3   in your Windows machine and also how to detect an object using  YOLOv3 with Keras . This year on April' 2020 the fourth generation of YOLO has arrived and since then I was curious to use this as soon as possible. Due to my project (built on YOLOv3 :)) work I could not find a chance to check this latest release. Today I got some relief and successfully able to install and compile YOLOv4 in my machine. In this post I am going to share a single shot way to do the same in your Windows 10 machine. If your machine does not have GPU then you can follow my  previous post  by just replacing YOLOv3 related files with YOLOv4 files. For GPU having Windows machine, follow my steps to avoid any issue while building the Darknet repository. My machine has following configurations: Windows 10 64 bit Intel Core i7 16 GB RAM NVIDIA GeForce GTX 1660 Ti Version 445.87