Posts

Showing posts from August, 2015

Airplane Route Histogram

Image
Please refer to the sight Open Flights. This gives us the databases for both airline locations and airline route details. Please download the files airplane.dat and routes.dat from the source http://www.openflights.org/data.html We have 2 files airplane.dat and routes.dat. Latter file stores every unique flight route that open flights know. With the help of the source data our aim is to calculate how far each route travels and then plot a histogram for the same. There are 3 tasks: 1)       First task is to map the unique id to the geographical coordinates. Hence we can look up the location of each airport by the id. 2)       Through the latter source file routes.dat we would get the id of the source and destination airport . Based on the latitudes and longitudes we would be able to know the length of the route and append it to the list of all route length 3)       Plot a histogram based on the rou...

Stage 2- Lets Play with Charts!!!

Image
Charts are a better way of understanding how to represent the data . Python also gives us an opportunity to dabble with the chart and helps in understanding the flow of data As an analyst one must be in love with charts to explore the nitty gritty of the data and find the pattern. Lets first understand how to build a simple chart Find below the code: And the output is     Let us build the chart for the radish votes. Find below the snapshot of the code snippet We have written a programme where through first step we are importing two modules where pyplot is one method through which we   are plotting graph data with Matplotlib   and NumPy caters to the numeric function of Python. Then we are creating 2 lists one names and other votes holding names and votes counts respectively Then when we come across the for loop it is creating a list of radish names and list of vote counts Then np.arrange function sees to it that it cre...

Welcome to the world of the Python!! Beautiful is better than ugly!!!!

Image
Hey Folks!!!   Welcome back..... I am pursuing a further specialization in business analytics and this blog is regarding working with python on RadishSurvey Data Set. Just sit back and relax and run along the simple steps to find amazing analysis...... ;p Its like reading a story.  We all love food. In today's analysis we have a survey on people who likes radishes (different variety). We would like to understand who loves which variety and few more insights. Ok!!! So ready lets start.   1)       Data Loading Welcome to the world of python. Today let us understand how do we work with strings. We have a data with us that includes 300 lines of survey data each line consists of a name and radish variety. Source of data: “http://opentechschool.github.io/python-data-intro/files/radishsurvey.txt” 2)       Reading the data Data can be read through the following code below: Brief Understanding: W...