Question: CSV is a very simple format - just commas separating columns and newlines separating rows ( see note below about commas that are part of
CSV is a very simple format just commas separating columns and newlines separating rows see note below about commas that are part of field names You'll see an example of CSV format below. There is a csv module for Python, but you will not use it for this project.
Your class should have:
an init method that reads the file and stores it in whatever data members you prefer. Any data members of the SatData class must be private.
a method named saveascsv that takes as a parameter a list of DBNs district bureau numbers and saves a CSV file that looks like this, but with only the rows that correspond to the DBNs in the list and also the row of column headers To see what CSV syntax looks like, open the file as a text file rather than as a spreadsheet. You may assume that all of the DBNs in the list passed to your method are present in the JSON file. The rows in the CSV file must be sorted in ascending order by DBN The name of the output file must be output.csv
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
