AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

How to Use Zhipu Qingyan's Advanced Data Analysis for Spreadsheets, Data Cleaning, and Charts

365Finds Editorial
Indexed 11,430 Wiki articles

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

Business analysts and knowledge workers frequently find themselves trapped in spreadsheet friction: broken VLOOKUP formulas, irregular date strings, merged header rows, mixed numerical units, and repetitive requests for executive charts. When standard large language models (LLMs) attempt to process these spreadsheets through pure conversational text generation, they inevitably run into token limits, hallucinated arithmetic, and fabricated summaries.

Zhipu Qingyan (智谱清言), powered by the GLM architecture, bypasses these structural flaws through its Advanced Data Analysis capability (Code Interpreter). Instead of attempting mental math over tabular tokens, Zhipu Qingyan translates natural language instructions into real, executable Python scripts running in a secured cloud sandbox. Equipped with pre-installed analytical libraries such as pandas, openpyxl, matplotlib, and seaborn, it executes programmatic transformations against uploaded Excel (.xlsx, .xls) and CSV files, catches runtime errors through an automated agent loop, and produces verified numerical outputs, clean downloadable files, and presentation-ready visual charts.

Whether working through the web interface at chatglm.cn or directly inside Microsoft 365 spreadsheets via the GLM in Excel (Beta) add-in, knowledge workers can transform hours of manual data wrangling into a structured, four-phase analytical workflow.


1. The Execution Engine Behind the Curtain

To extract reliable results from Zhipu Qingyan, an analyst must understand how it operates under the hood. When you upload a spreadsheet, Zhipu Qingyan does not treat rows and columns as mere reading material.


2. Phase 1: Spreadsheet Inspection and Structural Reconnaissance

The single biggest mistake analysts make with AI spreadsheet tools is issuing vague, broad instructions immediately after uploading a file (e.g., "Analyze this file and tell me what is interesting"). Complex corporate workbooks contain multi-line headers, blank separator rows, totals rows, and multi-sheet arrangements that confuse one-shot prompts.

A professional workflow always starts with structural reconnaissance.

Step-by-Step Inspection Practice

  1. Upload the File: Click the attachment icon in Zhipu Qingyan and upload your .xlsx or .csv dataset.
  2. Issue a Reconnaissance Prompt:

    "Read the uploaded workbook. First, list all sheet names. For the active/main sheet, display the first 5 rows (head()), total row and column dimensions (shape), column data types (dtypes), and the percentage of missing values per column. Do not make any changes yet."

  3. Audit the Output: Zhipu Qingyan will write and execute a Python script inspecting the workbook schema. It will present:
    • Sheet names (e.g., ['Q3_Sales', 'Lookup_Master', 'Pivot_Summary']).
    • Detected headers versus actual data rows.
    • Data anomalies: columns intended to be numerical currency that were ingested as object (string) due to dollar or yuan symbols, commas, or notes like "N/A" and "pending".

Identifying Structural Flaws

During this inspection stage, Zhipu Qingyan typically surfaces hidden spreadsheet defects:


3. Phase 2: Data Cleaning and Schema Normalization

Once the data structure is documented, analysts use Zhipu Qingyan to clean and reshape messy rows into a normalized tabular format.

Common Cleaning Scenarios and Prompt Patterns

A. Handling Mixed Formats and Non-Numeric Characters

Corporate reports frequently store amounts with symbols or shorthand abbreviations (e.g., "$1,250.00", "¥3,400", "50w", "1.2M").

B. Resolving Merged Headers and Blank Fillers

In many operational reports, department names are merged across multiple rows, leaving lower cells blank.

C. Standardizing Inconsistent Dates

Spreadsheets aggregated across global teams often mix 2026/03/15, 15-03-2026, and Excel serial numbers (like 45366).

D. Deduplication and Entity Resolution

Exporting Clean Data

Zhipu Qingyan saves transformed datasets to the session output storage (/mnt/session/outputs/). You can conclude cleaning by instructing:

"Save the fully cleaned dataset as cleaned_sales_q3.xlsx with clean column headers and proper number formatting, and provide a direct download link."

The model returns a clickable link allowing you to download the purified file for immediate operational use.


4. Phase 3: Generating Analytical Charts and Visualizations

After data cleaning, Zhipu Qingyan leverages Python's visualization ecosystem—primarily matplotlib and seaborn—to generate visual charts.

Unlike basic web-based chart tools that struggle with typography or multi-byte text, Zhipu Qingyan's cloud sandbox comes configured with Chinese and multilingual font support (such as Noto CJK and WenQuanYi). This prevents the dreaded "tofu box" (□□) rendering bug when generating charts with mixed English, Chinese, or specialized business terminology.

Best Practices for Designing Charts with Zhipu Qingyan

  1. Specify the Dimension and Metric: Avoid asking for "a nice chart". Specify the independent variable (X-axis), dependent variable (Y-axis), aggregation method (sum, mean, median), and sort order.
  2. Define Chart Hierarchy: Request annotations, target reference lines, data labels, and clean color schemes suitable for executive presentations.
  3. Instruct Formatting Guidelines: Ask for high DPI rendering (dpi=300) and appropriate figure sizing so charts can be pasted directly into PowerPoint slides or memo decks.

High-Impact Visualization Prompts

Scenario 1: Pareto Distribution & Cumulative Share (Bar + Line Combo)

Scenario 2: Monthly Run-Rate and Margin Variance (Trend Analysis)

Scenario 3: Correlation Matrix Heatmap (Multivariate Diagnostic)

Downloading and Refining Visuals

Once Zhipu Qingyan displays the chart image in the chat stream:


5. Integrating with Excel: The GLM in Excel (Beta) Plugin

Beyond browser-based file uploading, knowledge workers who live inside Microsoft Excel can leverage the GLM in Excel (Beta) add-in.


6. Enterprise Data Hygiene and Workflow Guardrails

To use Zhipu Qingyan safely and effectively in commercial environments, business analysts should maintain key operational guardrails:

By treating Zhipu Qingyan's Advanced Data Analysis as a sandboxed, programmatic partner rather than an intuitive text generator, business analysts and knowledge workers can reliably automate repetitive spreadsheet janitorial work, conduct verifiable data diagnostics, and deliver executive-grade visual reporting in minutes.


References