It's UWAweek 25 (mid-year break)

helpOSTS

This forum is provided to promote discussion amongst students enrolled in Open Source Tools and Scripting.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying the 3 articles in this topic
Showing 3 of 439 articles.
Currently 8 other people reading this forum.


 UWA week 19 (1st semester, week 10) ↓
SVG not supported

Login to reply

👍?
helpful
1:00pm Thu 9th May, ANONYMOUS

Hi Professor Could you please explain below statements: 1. Also based on the header line, report any lines that do not have the same number of cells. (Cells are allowed be empty.) Should we ignore this rows or to print a message? 2. cantril_data_cleaning expects three .tsv files corresponding to the three files from Our World in Data. The input files may be in any order. The output is expected to be a tab-separated data directed, as before, to standard output. The input files may be in any order so that means only the three given files namely: gdp-vs-happiness.tsv,homicide-rate-unodc.tsv,life-satisfaction-vs-life-expectancy.tsv can be passed in any order and if any other files with different files names(atleast 1) passed should exit with an error message(am i correct?) Thanks.


SVG not supported

Login to reply

👍x1
helpful
9:23am Fri 10th May, Michael W.

Hi I'll respond to each part after the question; ANONYMOUS wrote:
> Hi Professor Could you please explain below statements: > > > 1. Also based on the header line, report any lines that do not have the same number of cells. (Cells are allowed be empty.) > > Should we ignore this rows or to print a message?
In effect, both. You ignore the row, in the sense of not printing it to stdout, but you also print an error message (to stderr).
> > > 2. cantril_data_cleaning expects three .tsv files corresponding to the three files from Our World in Data. The input files may be in any order. The output is expected to be a tab-separated data directed, as before, to standard output. > > The input files may be in any order so that means only the three given files namely: gdp-vs-happiness.tsv,homicide-rate-unodc.tsv,life-satisfaction-vs-life-expectancy.tsv can be passed in any order and if any other files with different files names(atleast 1) passed should exit with an error message(am i correct?)
That is correct. HINT: Ignore the name of the file. Instead, look at the header (ie top) line. Cheers MichaelW


 UWA week 20 (1st semester, week 11) ↓
SVG not supported

Login to reply

👍?
helpful
2:34pm Mon 13th May, Evan W.

Hi So should we still attempt to use files that contain lines with incorrect number of cells or report and exit? Thanks

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  5:07AM Sep 06 2023
Privacy policy