[Paper Review] Data Science through the looking glass and what we found there
This paper presents the largest analysis to date of data science (DS) projects, examining 6M GitHub Python notebooks, 2M enterprise DS pipelines from CompanyX, and 900+ releases of 12 key DS libraries. Using static code analysis and statistical characterization, it reveals core trends in library usage, pipeline structure, and API evolution, offering actionable insights for system builders and practitioners on tooling priorities and technology adoption.
The recent success of machine learning (ML) has led to an explosive growth both in terms of new systems and algorithms built in industry and academia, and new applications built by an ever-growing community of data science (DS) practitioners. This quickly shifting panorama of technologies and applications is challenging for builders and practitioners alike to follow. In this paper, we set out to capture this panorama through a wide-angle lens, by performing the largest analysis of DS projects to date, focusing on questions that can help determine investments on either side. Specifically, we download and analyze: (a) over 6M Python notebooks publicly available on GITHUB, (b) over 2M enterprise DS pipelines developed within COMPANYX, and (c) the source code and metadata of over 900 releases from 12 important DS libraries. The analysis we perform ranges from coarse-grained statistical characterizations to analysis of library imports, pipelines, and comparative studies across datasets and time. We report a large number of measurements for our readers to interpret, and dare to draw a few (actionable, yet subjective) conclusions on (a) what systems builders should focus on to better serve practitioners, and (b) what technologies should practitioners bet on given current trends. We plan to automate this analysis and release associated tools and results periodically.
Motivation & Objective
- To provide a comprehensive, data-driven vantage point on the rapidly evolving data science landscape for both system builders and practitioners.
- To identify key trends in library usage, pipeline architecture, and API stability across public and enterprise DS projects.
- To inform strategic decisions on system development and technology adoption by analyzing real-world codebases at scale.
- To bridge the gap between system builders and data scientists by quantifying actual usage patterns and emerging patterns in DS workflows.
- To release automated, periodic analysis tools and results to support ongoing community understanding of DS evolution.
Proposed method
- Collected and analyzed 6 million publicly shared Python notebooks from GitHub to study the landscape of open-source, educational, and self-learned DS projects.
- Analyzed 2 million enterprise data science pipelines from CompanyX’s internal system (AnonSys) to understand production-grade DS workflows.
- Performed static analysis on over 900 releases of 12 major DS libraries (e.g., scikit-learn, PyTorch, TensorFlow) to track API and codebase evolution.
- Conducted filtering of code elements (classes, functions) by removing test, documentation, and example-related code to isolate core functional components.
- Used statistical and comparative analysis to study changes in library popularity, functionality, and stability over time (2017–2019).
- Generated 'Wild Actionable Guesses' (WAGs) to interpret quantitative findings and offer speculative but data-informed guidance for future development.
Experimental results
Research questions
- RQ1What are the dominant libraries, operators, and code structures used in public and enterprise data science projects?
- RQ2How has the usage of data science libraries evolved between 2017 and 2019, and which libraries show increasing or decreasing prominence?
- RQ3To what extent do public notebooks on GitHub reflect the structure and functionality of mature enterprise pipelines?
- RQ4How stable are the APIs of major DS libraries over time, and what does this imply for system optimization and tooling?
- RQ5What proportion of code in DS libraries consists of examples, tests, and documentation, and how does this affect perceived functionality?
Key findings
- The top 7 operators in AnonSys pipelines account for 75% of all 2M enterprise pipelines analyzed, indicating a high degree of structural commonality in production workflows.
- The number of DS libraries used in GitHub notebooks increased by a factor of 3 between 2017 and 2019, with the top 5 libraries gaining even more prominence (+3% relative increase).
- After filtering out test, documentation, and example code, Matplotlib emerged as the library with the highest number of functions (after filtering), surpassing Pandas and Scipy.
- The reduction in the number of classes and functions after filtering was substantial—up to 79% for Seaborn and Numpy—indicating extensive community investment in examples and documentation.
- Despite growing codebases, the relative ranking of libraries by functional complexity (classes and functions) remained stable, suggesting consistent core functionality and ecosystem maturity.
- The exponential growth in functions and classes per library continues, indicating ongoing API evolution and lack of consensus on stable interfaces, which poses challenges for system optimization and tooling.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.