Class 10 Computer · Chapter 5
Class 10 Computer Chapter 5 Notes – Introduction to Data Science (New Syllabus 2026-27)
Free 10th class computer chapter 5 notes for Introduction to Data Science, written for the new 2026-27 Punjab Board book. You get key definitions, the data science process step by step, mean and median with examples, and short Python programs. Read the overview below or download the full notes as a free PDF.
Free PDFs
All Chapter 5 downloads
Every PDF for Chapter 5: notes, short questions, MCQs and exercise solutions. Free to read online or download, no sign-up.
- Complete notes12.0 MB · PDFDownloadRead online
- Short questions5.8 MB · PDFDownloadRead online
- MCQs4.0 MB · PDFDownloadRead online
- Exercise solutions4.7 MB · PDFDownloadRead online
Overview
What Chapter 5 Introduction to Data Science is about

Chapter 5 introduces data science: turning raw data into useful answers. You will learn the kinds of data, such as numbers, text and categories, and how data is collected through surveys, sensors, forms and websites. Real data is often messy, so you will see how to clean it by removing missing, repeated or wrong values. Then you will analyse it with simple measures like mean, median and mode, and show it in bar charts, line graphs and pie charts. Examples include class test results, daily temperatures in Lahore and a shop's weekly sales.
Topics covered in the notes
- 5.1 What is data science: meaning, uses and the data science process.
- 5.2 Types of data: structured vs unstructured, numerical vs categorical data.
- 5.3 Collecting data: primary and secondary sources of data.
- 5.4 Cleaning data: missing values, duplicates, errors and outliers.
- 5.5 Simple analysis: measures of centre and spread with worked examples.
- 5.6 Visualising data: choosing the right chart and reading it correctly.
Key terms
- Data is a collection of raw facts, such as numbers, words, measurements or observations, that has not yet been processed.
- Data science is the study of collecting, cleaning, analysing and presenting data to find patterns and make better decisions.
- Data cleaning is the step of fixing or removing missing, repeated, incorrect or badly formatted values before analysis.
- Mean is the average of a set of values: add all the values and divide by how many there are.
- Median is the middle value when the data is arranged in order. With an even number of values it is the average of the two middle ones.
- Mode is the value that appears most often in a set of data.
- Data visualisation is showing data as charts, graphs or tables so that patterns are easy to see.
Code examples
temps = [31, 33, None, 35, 34, 120, 32] # None = missing, 120 = typing error
clean = [t for t in temps if t is not None and t < 60]
mean = sum(clean) / len(clean)
s = sorted(clean)
mid = len(s) // 2
if len(s) % 2 == 1:
median = s[mid]
else:
median = (s[mid - 1] + s[mid]) / 2
print("Clean data:", clean)
print("Mean:", mean, "Median:", median)
# Output: Clean data: [31, 33, 35, 34, 32]
# Mean: 33.0 Median: 33sales = {"Mon": 5, "Tue": 8, "Wed": 3, "Thu": 6}
for day in sales:
print(day, "#" * sales[day], sales[day])
best = max(sales, key=sales.get)
print("Best day:", best)
# Output: Mon ##### 5 ... Best day: TueImportant formulas
Questions students ask
What is the difference between mean and median?
The mean adds all values and divides by how many there are. The median is the middle value after sorting. One very large or very small value can pull the mean a lot, but the median hardly changes, so the median is better when data has outliers.
Why do we need to clean data before analysing it?
Missing, repeated or wrong values give wrong answers. For example, one temperature typed as 120 instead of 32 would make the average far too high, so it must be fixed or removed first.
Which chart should I use for my data?
Use a bar chart to compare groups, a line graph to show change over time, and a pie chart to show parts of a whole. A pie chart only makes sense when the parts add up to 100 percent.
Do I need special software to start data science?
No. You can practise the basic ideas with plain Python lists, a spreadsheet or even pen and paper. The notes use short Python programs that need no extra libraries.