The code in this repository aims at exploring the basics of pandas while solving problems.
Following are the problems we will be solving here:
You are given the heights (in inch) and weights (in lbs) of 5 people as shown in the table below:
Person | Height(inch) | Weight(lbs) |
---|---|---|
A | 72 | 186 |
B | 69 | 205 |
C | 70 | 201 |
D | 62 | 125 |
E | 57 | 89 |
It is later found that the table actually misses entries for persons F and G whose heights are 65 inch and 60 inch respectively and the weight for F is 121 lbs, but data for G's weight is missing. Also, values for all the heights is found to be 5 inch less than it should have been, whereas values for all the weights is found to be 5 lbs more than it should have been. Find the correct Body Mass Index (BMI) for each person, if possible.
We will solve this problem using both Series and DataFrame.
We have a dataset that contains data for trips made by a driver over a period of time. The description of the dataset reads as following:
A driver uses an app to track GPS coordinates as he drives to work and back each day. The app collects the location and elevation data. Data for about 200 trips are summarized in this data set.
Using the dataset, find
(a) the details for first, last and 10th entry,
(b) the details for each day,
(c) entries when total distance travelled in a day is greater than 90 but less than 100,
(d) the distance and fuel economy for a single row from (c),
(e) entries for Fridays when the average moving speed is greater than 90,
(f) entries when max speed is greater than 135 or fuel economy is less than 8, and
(g) details for the entries by day of week.
We'll be using DataFrame to solve this problem.