It's UWAweek 30 (2nd semester, week 1)

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 445 articles.
Currently 10 other people reading this forum.


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

Login to reply

👍?
helpful
1:04pm Wed 15th May, Eusha K.

Hello Mr. Wise, In the data cleaning portion, one of the tasks mentions: "Also based on the header line, report any lines that do not have the same number of cells. (Cells are allowed be empty.)" So do we just print them, or throw them to stderr, or delete them? Thanks!


SVG not supported

Login to reply

👍?
helpful
1:51pm Wed 15th May, Michael W.

"Eusha Khan" <24*4*9*9@s*u*e*t*u*a*e*u*a*> wrote:
> Hello Mr. Wise, > > In the data cleaning portion, one of the tasks mentions: "Also based on the header line, report any lines that do not have the same number of cells. (Cells are allowed be empty.)" > > So do we just print them, or throw them to stderr, or delete them? > > Thanks!
Hi Eusha, The error message about the incorrect row goes to stderr. Then you move on to the the next input line, which has the effect of deleting the from the output. That is, the line won't be there so it appears to have been deleted. (Of course, the input file remains unchanged.) Cheers MichaelW 👨‍🎨


SVG not supported

Login to reply

👍?
helpful
2:35pm Wed 15th May, ANONYMOUS

Is it possible that there are no incorrect lines in any of the files given?

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  7:24AM Jul 25 2024
Privacy policy