#1 India's Top IT Training Institute
×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
Mentors

Mentors

Meet the industry experts who train and guide you through your course.

Read More →
Free Resources

Free Resources

Free tutorials, interview questions, tools and calculators to help you learn.

Explore →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →

Use AI to Extract Insights from Raw Data

AI tools can turn a messy spreadsheet into findings in minutes, but only if the data is cleaned first and every answer is checked. The quickest route is a four-step loop: profile, clean, ask, verify.

Use AI to Extract Insights from Raw Data

Use AI to Extract Insights from Raw Data

"Raw data" here means an export nobody has tidied: a CSV from a billing system, a Google Form response sheet, or a sales report where each branch typed city names differently. The AI options for working with it fall into three groups:

  • Chat assistants that run code, such as ChatGPT's data analysis feature, Claude or Gemini with file upload. You upload a file and ask questions; the tool writes and runs Python to answer.
  • AI inside spreadsheets and BI tools, such as Copilot in Excel, Gemini in Google Sheets and Copilot in Power BI.
  • Notebook assistants, such as Gemini in Google Colab or Copilot in VS Code, which help you write the analysis code yourself.

Whichever you use, the same loop applies.

Step 1: profile the data

Before asking for insights, ask the tool (or write code) to describe the data: number of rows, column types, missing values, distinct values in text columns, and minimum and maximum of number columns. This one step catches most of the problems that later produce wrong "insights".

A useful first prompt: "Profile this file. For each column give the type, missing count, number of distinct values and five example values. Do not draw conclusions yet."

Step 2: clean it, and see what was changed

Here is a small but realistic order export, with the problems you will meet constantly: inconsistent spellings, a blank amount and one suspicious value. The script profiles it, cleans it, flags outliers and only then summarises:

import csv, io
from statistics import quantiles

raw = """order_id,city,amount
1,Delhi,1200
2,delhi ,950
3,New Delhi,1100
4,Mumbai,
5,Bombay,1300
6,Mumbai,1250
7,Pune,980
8,Pune,45000
"""

rows = list(csv.DictReader(io.StringIO(raw)))

# 1. profile: what is missing or inconsistent?
missing = [r["order_id"] for r in rows if not r["amount"].strip()]
print("rows:", len(rows), "| missing amount:", missing)
print("city spellings:", sorted({r["city"] for r in rows}))

# 2. clean: one name per city, drop rows without an amount
alias = {"delhi": "Delhi", "new delhi": "Delhi", "mumbai": "Mumbai", "bombay": "Mumbai", "pune": "Pune"}
clean = [{"city": alias[r["city"].strip().lower()], "amount": float(r["amount"])}
         for r in rows if r["amount"].strip()]

# 3. flag outliers with the IQR rule before summarising
amounts = [r["amount"] for r in clean]
q1, _, q3 = quantiles(amounts, n=4)
high = q3 + 1.5 * (q3 - q1)
print("outliers:", [a for a in amounts if a > high])

totals = {}
for r in clean:
    if r["amount"] <= high:
        totals[r["city"]] = totals.get(r["city"], 0) + r["amount"]
print("revenue by city (outliers excluded):", totals)

Output:

rows: 8 | missing amount: ['4']
city spellings: ['Bombay', 'Delhi', 'Mumbai', 'New Delhi', 'Pune', 'delhi ']
outliers: [45000.0]
revenue by city (outliers excluded): {'Delhi': 3250.0, 'Mumbai': 2550.0, 'Pune': 980.0}

Three decisions were made here, and each one changes the answer:

  1. "New Delhi" was merged into "Delhi". Fine for a city-level view, wrong if New Delhi is a separate sales region.
  2. Order 4 was dropped because its amount is blank. Is it a cancelled order, or a data-entry gap?
  3. The ₹45,000 Pune order was excluded as an outlier. Without that step, Pune would look like the top city. But it may be a real bulk order, which is itself an insight.

When an AI tool cleans data for you, ask it to list every change like this. Tools sometimes fill blanks or drop rows silently. For more techniques, see data cleaning techniques every analyst should know.

Step 3: ask specific questions

"Give me insights" produces generic statements. Questions tied to a decision produce useful answers:

VagueSpecific
What are the trends?Which three products grew most in revenue between Q1 and Q2, and by how much?
Any insights on customers?What share of customers who ordered in January ordered again within 60 days?
Find anomalies.List days where orders were more than twice the 7-day average, with the city.
Why are sales down?Compare May and June revenue by city and product; which combinations explain most of the drop?

Ask for a chart only after the numbers look right. A clear question is also a skill you can practise; ChatGPT for data science has more prompt patterns.

Step 4: verify before you share

  • Look at the code. Chat tools that run Python can show it. Check the filters and the grouping column.
  • Recalculate one number another way, for example with a pivot table in Excel.
  • Check totals. Does revenue by city add up to total revenue?
  • Watch for invented explanations. An AI may say sales fell "because of the monsoon" when nothing in the data shows that. Treat causes as hypotheses to test, not findings.
  • Remember correlation is not causation. Two columns moving together does not prove one drives the other.

Patterns AI is good at finding

  • Segments: clustering customers by order frequency and value.
  • Anomalies: unusual transactions or days, using rules like the IQR check above or models such as Isolation Forest.
  • Themes in text: grouping open-ended survey answers or reviews; see summarising customer reviews with AI.
  • Drivers: which factors are most associated with an outcome, as a starting point for deeper analysis.

Privacy and safety

Do not upload customer names, phone numbers, Aadhaar or account numbers to a public AI tool. Remove or mask personal columns first, and use your company's approved, enterprise version of a tool for anything confidential. India's Digital Personal Data Protection Act, 2023 makes careless handling of personal data a legal risk, not only a policy one.

Build the skill underneath

AI speeds up analysis for people who already understand it. If you can write a basic pandas script and know what exploratory analysis should cover, you will catch the tool's mistakes. Start with exploratory data analysis in Python and pandas for data manipulation.

FAQs

Can AI analyse a CSV or Excel file for me?

Yes. Chat assistants with file upload can run code on your file, and spreadsheet tools such as Copilot in Excel and Gemini in Google Sheets can answer questions about your data. Check the steps and numbers before relying on them.

Should I clean data before using AI on it?

Yes, or at least ask the AI to profile the data and list every cleaning change it makes. Inconsistent labels, blanks and outliers are the most common causes of wrong conclusions.

Is it safe to upload company data to ChatGPT?

Not if it contains personal or confidential information and you are using a personal account. Mask sensitive columns and use your organisation's approved AI tools.

Placed Students

Our Clients

Partners

...