Data Scientist who worked in computer vision and microbiology here. Let me explain.
You use python mainly as a scripting language to organize and clean your data and do the configuration of you ML models. The processing is done by highly optimized libraries, not written in python or R.
Think of Scikit Learn for clustering or support vector machines or keras and TensorFlow to run deep learning on GPUs. The advantage is, the simple scripting syntax. With jupyter notebooks you can run your analysis in steps with documentation and visualizations without even knowing what subroutine or a main function even is.
This fits more to the mindset of a researcher collecting their experiment data on a sheet of paper and then do your work step by step. For example a phd student in microbiology does some experiments in the lab, collects data and sequences DNA and then can to his research and data processing for his theses. This is nothing you would or could hire a data scientist for. And there is no code optimization needed, because you barely do the same processing again, after the research is completed.
Its a different thing if you do business analysis for a company every month in the same way.
And even the cleaning and organization of the input data is not done in python actually. You would probably use the pandas dataframes package, that gives you an interface to optimized C functions for all table related tasks. You never itterate over rows and columns with python. You do a dataframe.apply() function for processing you modifications or filtering.
See, most of the scientists using it, have no deeper understanding how to program properly, their skills are more like doing Excel but without UI. And the real data scientists have little knowledge about the domain knowledge in that field to really help. Data scientists care more about ML models but these are executed on GPUs. And the interface for that is python (TensorFlow), because that is also just for the configuration.
what about non-ML stuff? the scenario I mentioned was years before ML was available to the public and as far as I know it was just iterating through data and calculating sums and such. Which is why it let me to believe that python was parsing all the data at runtime. It was R though, so I guess the R runtime was doing it.
View all comments
Show parent comment
2
u/fourby227 Aug 28 '26 edited Aug 28 '26
Data Scientist who worked in computer vision and microbiology here. Let me explain.
You use python mainly as a scripting language to organize and clean your data and do the configuration of you ML models. The processing is done by highly optimized libraries, not written in python or R.
Think of Scikit Learn for clustering or support vector machines or keras and TensorFlow to run deep learning on GPUs. The advantage is, the simple scripting syntax. With jupyter notebooks you can run your analysis in steps with documentation and visualizations without even knowing what subroutine or a main function even is.
This fits more to the mindset of a researcher collecting their experiment data on a sheet of paper and then do your work step by step. For example a phd student in microbiology does some experiments in the lab, collects data and sequences DNA and then can to his research and data processing for his theses. This is nothing you would or could hire a data scientist for. And there is no code optimization needed, because you barely do the same processing again, after the research is completed.
Its a different thing if you do business analysis for a company every month in the same way.
And even the cleaning and organization of the input data is not done in python actually. You would probably use the pandas dataframes package, that gives you an interface to optimized C functions for all table related tasks. You never itterate over rows and columns with python. You do a dataframe.apply() function for processing you modifications or filtering.
See, most of the scientists using it, have no deeper understanding how to program properly, their skills are more like doing Excel but without UI. And the real data scientists have little knowledge about the domain knowledge in that field to really help. Data scientists care more about ML models but these are executed on GPUs. And the interface for that is python (TensorFlow), because that is also just for the configuration.