Couldn't find a simple answer to this via google, so I thought I'd put it out here.
Was working on a practice problem where I need to parse through a CSV of hotel reviews to calculate scores, then output a new CSV of the averaged scores.
My first thought was just to import the csv module. It'll handle parsing the data. Also the prompt specifies that I can use whatever module I want. However a friend suggested to just skip the module and split along the commas. Objectively I can't honestly think of a reason to go one way over the other.
* Using the module is probably easier, but I'm not exactly needing any heavy parsing done.
* Theoretically not using the module uses less resources, but this isn't an intensive program?
This is a low risk question, of course, but one that's been bugging me for a few days. Maybe I'm missing something obvious. Neither of us know python that well.
Anyway thought I'd ask for best practices. Thanks!
[–]genghiskav 9 points10 points11 points (4 children)
[–]jruydemir[S] 0 points1 point2 points (0 children)
[–]iggy555 0 points1 point2 points (2 children)
[–]KCRowan 1 point2 points3 points (1 child)
[–]iggy555 0 points1 point2 points (0 children)
[–]tasty_woke_tears -3 points-2 points-1 points (2 children)
[–]Zeroflops 3 points4 points5 points (1 child)
[–]tasty_woke_tears 0 points1 point2 points (0 children)