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

Detecting Credit Card Fraud As a Data Scientist

Another post starts with you beautiful people! Hope you have learnt something from my previous post about  machine learning classification real world problem Today we will continue our machine learning hands on journey and we will work on an interesting Credit Card Fraud Detection problem. The goal of this exercise is to anonymize credit card transactions labeled as fraudulent or genuine. For your own practice you can download the dataset from here-  Download the dataset! About the dataset:  The datasets contains transactions made by credit cards in September 2013 by european cardholders. This dataset presents transactions that occurred in two days, where we have 492 frauds out of 284,807 transactions. The dataset is highly unbalanced, the positive class (frauds) account for 0.172% of all transactions. Let's start our analysis with loading the dataset first:- As per the  official documentation -  features V1, V2, ... V28 are the principal compo...

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 you...

Learn the fastest way to build data apps

Another post starts with you beautiful people! I hope you have enjoyed and learned something new from my previous three posts about machine learning model deployment. In one post we have learned  How to deploy a model as FastAPI?  I n the second post, we have learned  How to deploy a deep learning model as RestAPI ? and in the third post, we have also learned  How to scale your deep learning model API?   If you are following my blog posts, you have seen how easily you have transit yourselves from aspiring to a mature data scientist. In this new post, I am going to share a new framework-  Streamlit which will help you to easily create a beautiful app with Python only. I will show here how had I used the Streamlit framework to create an app for my YOLOv3 custom model. What is Streamlit? Streamlit’s open-source app framework is the easiest way for data scientists and machine learning engineers to create beautiful, performant apps in only a few hours!...