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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 2ea05cae-59b2-4239-8126-196a9635b998Cited 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
- 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
- Contextualized Data-Wrangling Code Generation in Computational NotebooksJunjie Huang, Daya Guo, Chenglong Wang, Jiazhen Gu et al.ASE 2024 · 5 citations
- 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
