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 convert your YOLOv4 weights to TensorFlow 2.2.0?

Another post starts with you beautiful people! Thank you all for your overwhelming response in my last two posts about the YOLOv4. It is quite clear that my beloved aspiring data scientists are very much curious to learn state of the art computer vision technique but they were not able to achieve that due to the lack of proper guidance. Now they have learnt exact steps to use a state of the art object detection and recognition technique from my last two posts. If you are new to my blog and want to use YOLOv4 in your project then please follow below two links- How to install and compile Darknet code with GPU? How to train your custom data with YOLOv4? In my  last post we have trained our custom dataset to identify eight types of Indian classical dance forms. After the model training we have got the YOLOv4 specific weights file as 'yolo-obj_final.weights'. This YOLOv4 specific weight file cannot be used directly to either with OpenCV or with TensorFlow currently becau

How I 'Dockerized' my deep learning project?

Another post starts with you beautiful people! I hope you have enjoyed my last two posts about  Yolo   system   and now you are well aware of using Yolo with kers api as well as Yolo with Darknet framework in your Windows machine. I know Linux is the most suitable environment for production ready configurations, but like me there are many Windows users who find sometime very difficult to setup an environment. In my previous post I have shared my  Python setup requirements  which you can use to setup Python computer vision environment in Windows. Continuing my knowledge sharing journey, today I am going to share you how can we setup and use Docker with our Python project. What is Docker? Generally in our Python project structure we use a requirements.txt file where we define Python library name as key and it's version as value. This file is used to install required Python libraries when we deploy our code to new environment ( for example from Windows to Linux environment). We

How can I make a simple ChatBot?

Another post starts with you beautiful people! It has been a long time of posting a new post. But my friends in this period I was not sitting  where I got a chance to work with chatbot and classification related machine learning problem. So in this post I am going to share all about chatbot- from where I have learned? What I have learned? And how can you build your first bot? Quite interesting right! Chatbot is a program that can conduct an intelligent conversation based on user's input. Since chatbot is a new thing to me also, I first searched- is there any Python library available to start with this? And like always Python has helped me this time also. There is a Python library available with name as  ChatterBot   which is nothing but a machine learning conversational dialog engine. And yes that is all I want to start my learning because I always prefer inbuilt Python library to start my learning journey and once I learn this then only I move ahead for another sources.