Revealing the Semantics of Data Wrangling Scripts With Comantics
Kai Xiong, Zhongsu Luo, Siwei Fu, Yongheng Wang, Mingliang Xu, Yingcai Wu
Abstract
Data workers usually seek to understand the semantics of data wrangling scripts in various scenarios, such as code debugging, reusing, and maintaining. However, the understanding is challenging for novice data workers due to the variety of programming languages, functions, and parameters. Based on the observation that differences between input and output tables highly relate to the type of data transformation, we outline a design space including 103 characteristics to describe table differences. Then, we develop Comantics, a three-step pipeline that automatically detects the semantics of data transformation scripts. The first step focuses on the detection of table differences for each line of wrangling code. Second, we incorporate a characteristic-based component and a Siamese convolutional neural network-based component for the detection of transformation types. Third, we derive the parameters of each data transformation by employing a "slot filling" strategy. We design experiments to evaluate the performance of Comantics. Further, we assess its flexibility using three example applications in different domains.
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.
6 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- TableCanoniser: Interactive Grammar-Powered Transformation of Messy, Non-Relational Tables to Canonical Tables cites Untidy Data: The Unreasonable Effectiveness of Tables
- TableCanoniser: Interactive Grammar-Powered Transformation of Messy, Non-Relational Tables to Canonical Tables cites Rigel: Transforming Tabular Data by Declarative Mapping
- Rigel: Transforming Tabular Data by Declarative Mapping cites Untidy Data: The Unreasonable Effectiveness of Tables
- Rigel: Transforming Tabular Data by Declarative Mapping cites Wrex: A Unified Programming-by-Example Interaction for Synthesizing Readable Code for Data Scientists
- Data Formulator: AI-Powered Concept-Driven Visualization Authoring cites Natural Language to Visualization by Neural Machine Translation
- Data Formulator: AI-Powered Concept-Driven Visualization Authoring cites Untidy Data: The Unreasonable Effectiveness of Tables
- Ferry: Toward Better Understanding of Input/Output Space for Data Wrangling Scripts cites Wrex: A Unified Programming-by-Example Interaction for Synthesizing Readable Code for Data Scientists
- Ferry: Toward Better Understanding of Input/Output Space for Data Wrangling Scripts cites Rigel: Transforming Tabular Data by Declarative Mapping
- Ferry: Toward Better Understanding of Input/Output Space for Data Wrangling Scripts cites Data Formulator: AI-Powered Concept-Driven Visualization Authoring
Cited by top-tier papers6
- Data Formulator: AI-Powered Concept-Driven Visualization AuthoringChenglong Wang, John Thompson, Bongshin LeeIEEE VIS 2023 · 35 citations
- Rigel: Transforming Tabular Data by Declarative MappingRan Chen, Di Weng, Yanwei Huang, Xinhuan Shu et al.IEEE VIS 2022 · 21 citations
- BEMTrace: Visualization-Driven Approach for Deriving Building Energy Models from BIMAndreas Walch, Attila Szabó, Harald Steinlechner, Thomas Ortner et al.IEEE VIS 2024 · 5 citations
- Ferry: Toward Better Understanding of Input/Output Space for Data Wrangling ScriptsZhongsu Luo, Kai Xiong, Jiajun Zhu, Ran Chen et al.IEEE VIS 2024 · 4 citations
- TableCanoniser: Interactive Grammar-Powered Transformation of Messy, Non-Relational Tables to Canonical TablesKai Xiong, Cynthia A. Huang, Michael Wybrow, Yingcai WuCHI 2025 · 3 citations
Builds on12
- Unsupervised Translation of Programming LanguagesBaptiste Rozière, Marie-Anne Lachaux, Lowik Chanussot, Guillaume LampleNeurIPS 2020 · 606 citations
- Evaluating Machine Accuracy on ImageNetVaishaal Shankar, Rebecca Roelofs, Horia Mania, Alex Fang et al.ICML 2020 · 153 citations
- Natural Language to Visualization by Neural Machine TranslationYuyu Luo, Nan Tang, Guoliang Li, Jiawei Tang et al.IEEE VIS 2021 · 145 citations
- 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
- Untidy Data: The Unreasonable Effectiveness of TablesLyn Bartram, Michael Correll, Melanie ToryIEEE VIS 2021 · 56 citations
Related papers
- Contextualized Data-Wrangling Code Generation in Computational NotebooksJunjie Huang, Daya Guo, Chenglong Wang, Jiazhen Gu et al.ASE 2024 · 5 citations
- ViseGPT: Towards Better Alignment of LLM-generated Data Wrangling Scripts and User PromptsJiajun Zhu, Xinyu Cheng, Zhongsu Luo, Yunfan Zhou et al.UIST 2025 · 1 citation
- Xavier: Toward Better Coding Assistance in Authoring Tabular Data Wrangling ScriptsYunfan Zhou, Xiwen Cai, Qiming Shi, Yanwei Huang et al.CHI 2025 · 4 citations
- Unravel: A Fluent Code Explorer for Data WranglingNischal Shrestha, Titus Barik, Chris ParninUIST 2021 · 19 citations
- Dango: A Mixed-Initiative Data Wrangling System using Large Language ModelWei-Hao Chen, Weixi Tong, Amanda Case, Tianyi ZhangCHI 2025 · 19 citations
