Comments on: Data Coding 101 – Introduction To Bash – ep3 https://data36.com/command-line-data-science-introduction-to-bash/ Learn Data Science the Hard Way! Tue, 13 Feb 2024 22:14:11 +0000 hourly 1 https://wordpress.org/?v=6.7.4 By: Learning languages very quickly  —  with the help of some very basic Data Science. - Lexigo https://data36.com/command-line-data-science-introduction-to-bash/#comment-98624 Thu, 24 Oct 2019 03:11:28 +0000 https://data36.com/?p=773#comment-98624 […] can read them, if you want to learn more:Data Coding 101 — Introduction to Bash: ep#1, ep#2, ep#3, and […]

]]>
By: Tomi Mester https://data36.com/command-line-data-science-introduction-to-bash/#comment-67179 Sat, 16 Mar 2019 21:16:32 +0000 https://data36.com/?p=773#comment-67179 In reply to Tamás.

Nice!! Thanks Tamas!

]]>
By: Tamás https://data36.com/command-line-data-science-introduction-to-bash/#comment-67111 Sat, 16 Mar 2019 14:17:59 +0000 https://data36.com/?p=773#comment-67111 Hey Tomi,

I found an alternative solution there for Task #3:
cut flightdelays.csv -d',' -f18 | sort | uniq -c | sort -n -r | head -3

It’s not a big difference from your code, just I rotated top 3 destination airports from lowest to highest :).

Best regards,
Tamás

]]>
By: Data Coding in Bash Best Practices & Shortcuts (with video) https://data36.com/command-line-data-science-introduction-to-bash/#comment-66457 Wed, 13 Mar 2019 16:43:50 +0000 https://data36.com/?p=773#comment-66457 […] Data Coding 101 – Intro to Bash ep#3 […]

]]>
By: Tomi Mester https://data36.com/command-line-data-science-introduction-to-bash/#comment-47290 Tue, 13 Nov 2018 09:41:53 +0000 https://data36.com/?p=773#comment-47290 In reply to David.

Thanks David!

]]>
By: David https://data36.com/command-line-data-science-introduction-to-bash/#comment-47234 Tue, 13 Nov 2018 02:14:51 +0000 https://data36.com/?p=773#comment-47234 A quick tip for copying into mcedit: Shift + Ins
Found on: https://superuser.com/questions/884245/copy-and-paste-text-in-midnight-commander-mc-via-putty-in-linux

]]>
By: Tomi Mester https://data36.com/command-line-data-science-introduction-to-bash/#comment-29094 Tue, 31 Jul 2018 16:53:27 +0000 https://data36.com/?p=773#comment-29094 In reply to Harry.

Thanks Harry, spot on!
Cheers,
Tomi

]]>
By: Harry https://data36.com/command-line-data-science-introduction-to-bash/#comment-25181 Thu, 05 Jul 2018 01:31:38 +0000 https://data36.com/?p=773#comment-25181 Thanks Tomi for your great tutorial. On Test yourself #2
It’d better to use this command to get rid of the garbage ‘NA’ and then count the number of airports:
cut -d’,’ -f18 flightdelays.csv | grep -v ‘Dest’ | grep -v ‘NA’ | sort -u | wc -l
which gives 307 .
Cheers

]]>
By: Tomi Mester https://data36.com/command-line-data-science-introduction-to-bash/#comment-14635 Wed, 11 Apr 2018 17:09:53 +0000 https://data36.com/?p=773#comment-14635 In reply to Romulo.

Spot on!
Thanks a lot Romulo!
Tomi

]]>
By: Romulo https://data36.com/command-line-data-science-introduction-to-bash/#comment-13660 Tue, 27 Mar 2018 22:27:43 +0000 https://data36.com/?p=773#comment-13660 In reply to Tomi Mester.

This is because grep removes the line after the count. Check it out:
cut -d',' -f15 flightdelays.csv | head | sort -n
ArrDelay is on line 3
cut -d',' -f15 flightdelays.csv | head | sort -n | grep -v -n 'ArrDelay'

Related: When I was trying to solve the question alone I searched for a way to remove the first line and got tail -n +2 filename.ext , works great, I think it’s a better option to remove headers.

Thanks for the great content Tomi!

]]>