Mastering ChatGPT (OpenAI)Files, data, images and voice · Lesson 6 of 19

File uploads and data analysis

Article · 16 min · 9 min lecture

Video lecture

File uploads and data analysis

16 chapters · about 9 min · full transcript

Coming soon

Chapter 1 of 16

Data analysis you can trust

  • Upload
  • Clean
  • Calculate with code
  • Verify

The narrated lecture is in production

Every chapter is scripted and ready. Browse the chapters and read the full transcript now — the video will appear here when it’s published.

Chapters

What ChatGPT does with your files

You can upload PDFs, Word documents, slides, spreadsheets, CSVs, images and more, or pull files from connected apps such as Google Drive, OneDrive or SharePoint (where your plan and admin allow). For documents, ChatGPT reads and reasons over the text and visuals. For data files, it can write and run Python code in a secure sandbox to clean, calculate, chart and export results. That matters: numbers computed with code are far more reliable than numbers "estimated" in prose.

File size and count limits depend on plan and change over time; if an upload fails, check the help centre.

The six-step data workflow

1. Describe the data before analysing it.

Load the attached CSV. Before any analysis, report: number of rows, each column
with its data type and an example value, missing values per column, duplicate
rows, and anything that looks like an outlier or a data-entry error.
Don't analyse yet.

2. Clean deliberately. Decide how to handle duplicates, blanks and odd values yourself: "Remove exact duplicate rows. Treat blank 'Region' as 'Unknown'. Exclude test orders where email contains '@test'." Ask ChatGPT to report how many rows each rule affected.

3. Define metrics explicitly. "Engagement rate = (likes + comments + shares + saves) / impressions." "Revenue = gross sales minus refunds, excluding VAT." Ambiguous metrics produce confident, wrong comparisons.

4. Analyse with the question in mind. "Which content format had the highest median engagement rate in Q3, by platform? Show the table and the code."

5. Visualise simply. "One bar chart per platform, sorted descending, labelled axes, no 3D." Ask for an exportable file (PNG, XLSX, CSV) when you need to share it.

6. Verify. Spot-check two numbers yourself in Excel or Sheets. Ask: "Show me the rows behind the top result." Ask about sample size: "How many posts are in each group?"

Reading results critically

  • Small samples: "Stories performed best" based on three posts is an anecdote, not a trend.
  • Correlation vs causation: Tuesday posts may perform better because of what was posted on Tuesdays, not the day itself.
  • Survivorship: analysing only campaigns that ran to completion hides the ones cancelled early.
  • Units and currencies: mixed AED/SAR/GBP columns must be converted with a stated rate and date.

Ask ChatGPT directly: "What are the three biggest reasons this conclusion might be wrong?"

Documents: summarise, extract, compare

For long documents, use orient → quote → extract:

1. Give me the document's structure with page numbers.
2. Answer my questions only from the document, quoting the supporting sentence
   and page for each point; say "not stated" if it isn't there.
3. Extract every deadline, deliverable, owner and payment term into a table
   with page references.

To compare two versions of a contract or proposal, upload both, label them, and ask for material changes (price, scope, liability, dates) separately from cosmetic ones.

Worked example: social performance review for a UAE brand

A social media manager exports six months of Instagram and TikTok analytics. ChatGPT reports 14 duplicate rows and a column where some impressions were recorded as text. She sets cleaning rules, defines engagement rate, and asks for median (not mean) engagement by format and platform. The analysis shows carousels outperform reels on Instagram for her account. She asks for the post count behind each figure (carousels: 22 posts, reels: 41) and the code, spot-checks two values in Sheets, and presents the finding as "a pattern worth testing", with a four-week experiment plan, rather than a law.

Privacy first

  • Remove names, emails, phone numbers and order IDs you do not need before uploading.
  • Use your organisation's approved workspace (Business or Enterprise) for company data.
  • Delete working files from chats when finished, where appropriate.

Hands-on

Export a real, non-sensitive dataset (for example your own post analytics or a public dataset). Run all six steps, spot-check two numbers manually, and save the prompts as a reusable "data analysis" recipe in your prompt library or a Project.

Pitfalls

  • Asking for conclusions before inspecting data quality.
  • Undefined metrics and mixed currencies.
  • Charts that look authoritative but rest on a handful of rows.
  • Uploading full customer exports when three columns would do.

How to measure success

Every figure you share has been spot-checked, sample sizes are stated alongside findings, and your recommendations are framed as tests when the evidence is thin.

Key takeaways

  • ChatGPT can compute with code on uploaded data, making numbers more reliable than mental estimates.
  • Describe columns, clean deliberately, define metrics, then analyse and visualise.
  • Verify by reviewing steps and spot-checking numbers; watch sample sizes and causation claims.
  • Remove unnecessary personal data before uploading exports.

Check your understanding

Quick questions to lock in the lesson. They don’t count towards your certificate.

  1. Before analysing an uploaded CSV, what should you ask ChatGPT to do first?
  2. Why define metrics like 'engagement rate = engagements / impressions' explicitly?
  3. ChatGPT reports that Stories performed best, based on 3 posts. What's the right interpretation?

Put it into practice

Export a real, non-sensitive dataset (for example, your own post analytics). Run the six-step workflow and spot-check two numbers manually.

Enrol for free to save your progress

Reading is always free. Enrol to keep your place, take the final assessment and earn a verifiable certificate.