Write python code to analyze your dataset

Assignment Help Python Programming
Reference no: EM132291123

Data wrangling Assignment -

The assignment is regarding Exploratory Data Analysis and Data Cleansing (Data Wrangling).

Data Cleansing - For this assessment, you are required to write Python (Python 2/3) code to analyze your dataset, find and fix the problems in the data. The input and output of this task are shown below:

Table 1. The input and output of the task

Input

Output

Jupyter notebook

<student_no>_dirty_data.csv

<student_no>_outliers.csv

<student_no>_missing_value.csv

<student_no>_dirty_data_solution.csv

<student_no>_outliers_solution.csv

<student_no>.missing_value_solution.csv

<student_no>_ass2.ipynb

Exploring and understanding the data is one of the most important parts of the data wrangling process. You are required to perform both graphical and non-graphical EDA methods to understand the data first and then find the data problems. You are required to:

  • Detect and fix errors in <student_no>_dirty_data.csv?.
  • Detect and remove outliers in <student_no>_outliers.csv?.
  • Impute the missing values in <student_no>_missing_value.csv.

As a starting point, here is all we know about the dataset in hand: The dataset is about Uber Ridesharing data in Victoria, Australia. The description of each data column is shown in Table 2.

Table 2. Description of the columns

COLUMN

DESCRIPTION

Id

A unique id for the journey

Uber type

A categorical attribute for the type of the journey namely Uber pool, Uberx, Uber black. All we know is that the cost of these types of journeys may be different.

Origin region

A categorical attribute representing the region for the origin of the journey

Destination region

A categorical attribute representing the region for the destination of the journey

Origin latitude

Latitude of the origin coming from nodes.csv? file

Origin longitude

Longitude of the origin coming from nodes.csv? file

Destination latitude

Latitude of the destination coming from nodes.csv? file

Destination longitude

Longitude of the destination coming from the nodes.csv? file

Journey Distance

The shortest path, in meters, between the origin and the destination with respect to the nodes.txt and the edges.txt files. Dijkstra algorithm can be used to find the shortest path between two nodes in a graph. Reading materials can be found here.

Departure date

Date of the departure. We know that the price is different on weekdays compared to weekends.

Departure time

Time of the departure. We know that the Uber company has a specific rule to define a discrete number for morning (i.e. 0) (6:00:00 - 11:59:59), afternoon (i.e. 1) (12:00:00 - 20:59:59), and night (i.e. 2) (21:00 - 5:59:59) to calculate the fare.

Travel time

Travel time (i.e., duration) of the journey in seconds. Note that road types have their own speed limit in the edges.csv? file and the

car always travel with the exact speed limit.

Arrival time

The time of the arrival

Fare$

The fare of the journey. We know that the fare has a linear relation with some of the attributes of the dataset.

Note - The report should demonstrate the methodology (including all steps) to achieve the correct results. The cleaning task must be explained in a well-formatted report (with appropriate sections and subsections). Please remember that the report must explain the complete EDA to examine the data, your methodology to find the data anomalies and the suggested approach to fix those anomalies.

Attachment:- Assignment File.rar

Reference no: EM132291123

Questions Cloud

Servant leadership emphasizes being able to serve and lead : Servant leadership emphasizes being able to serve and lead. In your opinion, is this contradictory or doable?
Community care scenario in the allied health community : Referring to the Community Care scenario in the Allied Health Community, imagine that during the meeting many participants blame poor supervision/management
What is the revenue maximizing pricing strategy : What is the revenue maximizing pricing strategy for the movie producer
Define strategic importance of cloud computing : Strategic importance of cloud computing in business organizations. Details to follow while writing, Research paper basics: 10-12 pages in length.
Write python code to analyze your dataset : FIT5196 - Data wrangling Assignment, Monash University, Australia. Write Python (Python 2/3) code to analyze your dataset
Calculate the markup on cost of goods sold : How do you calculate the markup on cost of goods sold? Is the markup pure profit? Explain.
How cvp analysis can be used for managerial planning : How CVP analysis can be used for managerial planning. Why contribution margin per unit becomes profit per unit above the break-even point.
What are the implications of the study : Find an article from a recent issue of a peer-reviewed journal related to clinical or counseling psychology - describe specifically an experimental manipulation
What is siem software and how it works to help organizations : What is SIEM software? Provide a brief explanation of what it does and how it works to help organizations protect their cloud solutions from cyberattacks.

Reviews

len2291123

4/23/2019 12:02:22 AM

The assignment is regarding Exploratory Data Analysis and Data Cleansing (Data Wrangling) and is worth 35% of the overall grade. It needs to be done up to mark. The report should demonstrate the methodology (including all steps) to achieve the correct results. Please remember that the report must explain the complete EDA to examine the data, your methodology to find the data anomalies and the suggested approach to fix those anomalies.

len2291123

4/23/2019 12:02:17 AM

Notes: The output csv files must have the exact same columns as the input. There is at least one error in the dataset from each category of the data anomalies (i.e., syntactic, semantic, and coverage). No rows carry more than one error. There is no error other than outliers in the file student_no_outliers.csv. Similarly, there is no error other than missing value problems in the file student_no_missing_value.csv. 5. The radius of the Earth is 6378.0km. Each Uber type has its own method of calculating the fare. As EDA is part of this assessment, no further information will be given publicly regarding the data. However, you can brainstorm with the teaching team during tutorials and consultation sessions.

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd