Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed
this is the best i can do if you zoom in you can see
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Choose an appropriate organizational pattern for your speech

Answered: 1 week ago

Question

Writing a Strong Conclusion

Answered: 1 week ago