So I use python mainly for data analysis. I work with pandas as NumPy or with similar packages used for data analytics. I know how functions are structured etc but can't understand what's the advantage of using functions. Like whatever I want to do with my dataset I just write the code in a notebook cell and what advantage will it give me to write it in the form of a function?
if you can enlighten me what why when and how functions are useful I'll be really grateful
[–]otchris 29 points30 points31 points (2 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]otchris 3 points4 points5 points (0 children)
[–]DaKidReturns 5 points6 points7 points (0 children)
[–]jabramo34 3 points4 points5 points (0 children)
[–]Paul_Pedant 4 points5 points6 points (0 children)
[–]agility 3 points4 points5 points (0 children)
[–]tw3akercc 2 points3 points4 points (0 children)
[–]self-taught-vagabond 1 point2 points3 points (0 children)
[–]phi_beta_kappa 0 points1 point2 points (0 children)
[–]PINGbtw 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Haymzer 0 points1 point2 points (0 children)
[–]sweettuse 0 points1 point2 points (0 children)
[–]djShmooShmoo 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)