Lune

ASE2021Top-tier venue

Subtle Bugs Everywhere: Generating Documentation for Data Wrangling Code

Chenyang Yang, Shurui Zhou, Jin L. C. Guo, Christian Kästner

Abstract

Data scientists reportedly spend a significant amount of their time in their daily routines on data wrangling, i.e. cleaning data and extracting features. However, data wrangling code is often repetitive and error-prone to write. Moreover, it is easy to introduce subtle bugs when reusing and adopting existing code, which results in reduced model quality. To support data scientists with data wrangling, we present a technique to generate documentation for data wrangling code. We use (1) program synthesis techniques to automatically summarize data transformations and (2) test case selection techniques to purposefully select representative examples from the data based on execution information collected with tailored dynamic program analysis. We demonstrate that a JupyterLab extension with our technique can provide on-demand documentation for many cells in popular notebooks and find in a user study that users with our plugin are faster and more effective at finding realistic bugs in data wrangling code.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Revealing the Semantics of Data Wrangling Scripts With Comantics cites Wrex: A Unified Programming-by-Example Interaction for Synthesizing Readable Code for Data Scientists
  • JupyterLab in Retrograde: Contextual Notifications That Highlight Fairness and Bias Issues for Data Scientists cites What's Wrong with Computational Notebooks? Pain Points, Needs, and Design Opportunities
  • Data Leakage in Notebooks: Static Detection and Better Processes cites Assessing and Restoring Reproducibility of Jupyter Notebooks
  • Data Leakage in Notebooks: Static Detection and Better Processes cites What's Wrong with Computational Notebooks? Pain Points, Needs, and Design Opportunities
  • Aspirations and Practice of ML Model Documentation: Moving the Needle with Nudging and Traceability cites Wrex: A Unified Programming-by-Example Interaction for Synthesizing Readable Code for Data Scientists
  • Aspirations and Practice of ML Model Documentation: Moving the Needle with Nudging and Traceability cites What's Wrong with Computational Notebooks? Pain Points, Needs, and Design Opportunities
  • Restoring Execution Environments of Jupyter Notebooks cites Assessing and Restoring Reproducibility of Jupyter Notebooks
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. WaitGPT: Monitoring and Steering Conversational LLM Agent in Data Analysis with On-the-Fly Code VisualizationLiwenhan Xie, Chengbo Zheng, Haijun Xia, Huamin Qu et al.UIST 2024 · 45 citations
  2. Aspirations and Practice of ML Model Documentation: Moving the Needle with Nudging and TraceabilityAvinash Bhat, Austin Coursey, Grace Hu, Sixian Li et al.CHI 2023 · 29 citations
  3. Data Leakage in Notebooks: Static Detection and Better ProcessesChenyang Yang, Rachel A. Brower-Sinning, Grace A. Lewis, Christian KästnerASE 2022 · 25 citations
  4. Revealing the Semantics of Data Wrangling Scripts With ComanticsKai Xiong, Zhongsu Luo, Siwei Fu, Yongheng Wang et al.IEEE VIS 2022 · 13 citations
  5. JupyterLab in Retrograde: Contextual Notifications That Highlight Fairness and Bias Issues for Data ScientistsGalen Harrison, Kevin Bryson, Ahmad Emmanuel Balla Bamba, Luca Dovichi et al.CHI 2024 · 5 citations

Builds on7

  1. What's Wrong with Computational Notebooks? Pain Points, Needs, and Design OpportunitiesSouti Chattopadhyay, Ishita Prasad, Austin Z. Henley, Anita Sarma et al.CHI 2020 · 162 citations
  2. Wrex: A Unified Programming-by-Example Interaction for Synthesizing Readable Code for Data ScientistsIan Drosos, Titus Barik, Philip J. Guo, Robert DeLine et al.CHI 2020 · 110 citations
  3. Assessing and Restoring Reproducibility of Jupyter NotebooksJiawei Wang, Tzu-yang Kuo, Li Li, Andreas ZellerASE 2020 · 68 citations
  4. Restoring Execution Environments of Jupyter NotebooksJiawei Wang, Li Li, Andreas ZellerICSE 2021 · 49 citations
  5. Callisto: Capturing the "Why" by Connecting Conversations with Computational NarrativesApril Yi Wang, Zihan Wu, Christopher Brooks, Steve OneyCHI 2020 · 44 citations

Related papers

  1. Cell2Doc: ML Pipeline for Generating Documentation in Computational NotebooksTamal Mondal, Scott Barnett, Akash Lal, Jyothi VeduradaASE 2023 · 4 citations
  2. Xavier: Toward Better Coding Assistance in Authoring Tabular Data Wrangling ScriptsYunfan Zhou, Xiwen Cai, Qiming Shi, Yanwei Huang et al.CHI 2025 · 4 citations
  3. HAConvGNN: Hierarchical Attention Based Convolutional Graph Neural Network for Code Documentation Generation in Jupyter NotebooksXuye Liu, Dakuo Wang, April Yi Wang, Yufang Hou et al.EMNLP Findings 2021 · 11 citations
  4. Contextualized Data-Wrangling Code Generation in Computational NotebooksJunjie Huang, Daya Guo, Chenglong Wang, Jiazhen Gu et al.ASE 2024 · 5 citations
  5. Fine-Grained Lineage for Safer Notebook InteractionsStephen Macke, Aditya G. Parameswaran, Hongpu Gong, Doris Jung Lin Lee et al.VLDB 2021 · 46 citations
Dusk over the sea between two cliffs drawn in fine vertical lines