Xavier: Toward Better Coding Assistance in Authoring Tabular Data Wrangling Scripts

Yunfan Zhou, Xiwen Cai, Qiming Shi, Yanwei Huang, Haotian Li, Huamin Qu, Di Weng and Yingcai Wu

Abstract

Data analysts frequently employ code completion tools in writing custom scripts to tackle complex tabular data wrangling tasks. However, existing tools do not sufficiently link the data contexts such as schemas and values with the code being edited. This not only leads to poor code suggestions, but also frequent interruptions in coding processes as users need additional code to locate and understand relevant data. We introduce Xavier, a tool designed to enhance data wrangling script authoring in computational notebooks. Xavier maintains users’ awareness of data contexts while providing data-aware code suggestions. It automatically highlights the most relevant data based on the user’s code, integrates both code and data contexts for more accurate suggestions, and instantly previews data transformation results for easy verification. To evaluate the effectiveness and usability of Xavier, we conducted a user study with 16 data analysts, showing its potential to streamline data wrangling scripts authoring.

Venue
CHI 2025
Volume
Proceedings of the 2025 CHI Conference on Human Factors in Computing Systems
DOI
10.1145/3706598.3714239
PDF
https://dl.acm.org/doi/pdf/10.1145/3706598.3714239
Anthology ID
2025.chi.1144

Cite

@inproceedings{zhou-etal-2025-xavier,
    title = {{Xavier: Toward Better Coding Assistance in Authoring Tabular Data Wrangling Scripts}},
    author = {Yunfan Zhou and Xiwen Cai and Qiming Shi and Yanwei Huang and Haotian Li and Huamin Qu and Di Weng and Yingcai Wu},
    booktitle = {Proceedings of the 2025 CHI Conference on Human Factors in Computing Systems},
    isbn = {9798400713941},
    year = {2025},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3706598.3714239},
    url = {https://doi.org/10.1145/3706598.3714239},
    abstract = {Data analysts frequently employ code completion tools in writing custom scripts to tackle complex tabular data wrangling tasks. However, existing tools do not sufficiently link the data contexts such as schemas and values with the code being edited. This not only leads to poor code suggestions, but also frequent interruptions in coding processes as users need additional code to locate and understand relevant data. We introduce Xavier, a tool designed to enhance data wrangling script authoring in computational notebooks. Xavier maintains users’ awareness of data contexts while providing data-aware code suggestions. It automatically highlights the most relevant data based on the user’s code, integrates both code and data contexts for more accurate suggestions, and instantly previews data transformation results for easy verification. To evaluate the effectiveness and usability of Xavier, we conducted a user study with 16 data analysts, showing its potential to streamline data wrangling scripts authoring.}
}