Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please 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
please 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.
this is the best i can do if you zoom in you can see
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started