Question: use python Given the csv file exercise.csv with the following information: Contains some metadata headers. Contains three columns: DateTime (UTC) (Coordinated Universal Time) Depth Decibar
use python
Given the csv file exercise.csv with the following information:
- Contains some metadata headers.
- Contains three columns:
- DateTime (UTC) (Coordinated Universal Time)
- Depth Decibar (depth expressed in decibars)
- Temperature C (temperature in Celsius).
- Contains one last row with the following string END,,.
The required task to do is to use the exercise.csv file and create a new file called result.csv. To do so, you need to do the following information:
- Remove metadata headers and last row with the string END,,.
- Rename the exercise.csv columns to Datetime, Depth (m), Temperature C.
- Change Datetime format to YYYY-MM-DD HH:MM:SS.
- Add two new columns, Depth (fathoms) (conversion from meters to fathoms) and Temperature (F) (conversion from Celsius to Fahrenheit).
After you have created result.csv, using the previous file you will need to create another file called aggregated_result.csv. This file should contain the previous dataset aggregated in 1 minute intervals rounded to 1 decimal.
Ceck unt serial number x Ceck unt serial number x
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
