Free tutorials & notes in Hindi & English · Clean code examples 🧰 Free PDF & Image Tools →
📊 Unit 3 – Data Handling & NumPy  ·  Lesson 10

Understanding Data: Collect, Store, Process

What is data?

Data is a collection of raw facts and figures — numbers, words, measurements, observations, images or sounds. On its own, data may not mean much. When it is organised and processed, it becomes information that helps us understand something or take a decision.

Data41, 38, 44, 36, 45Processingcompare with 40 °CInformation3 heatwave daysDecisionchange school timings
From data to decision

Why data matters

🏫
SchoolsAttendance and marks data show which students need extra help.
🏥
HospitalsPatient records help track diseases and plan medicines.
🛒
ShopsSales data tells what to stock before festivals.
🌦️
WeatherSatellite data predicts rain and cyclones.
🏛️
GovernmentCensus data helps plan roads, schools and hospitals.
Data helps everyone decide better

Types of data

Structured data

  • Organised in rows and columns
  • Easy to search and analyse
  • Examples: marks register, bank statement, railway timetable, spreadsheets

Unstructured data

  • No fixed format
  • Needs special tools to analyse
  • Examples: photos, videos, voice notes, emails, social-media posts
Structured vs unstructured

Data can also be qualitative (descriptive: colour, grade, city) or quantitative (numeric: height, price, temperature). Quantitative data is either discrete (counted: number of students) or continuous (measured: height 162.5 cm).

RollNameHouseHeight_cmSiblings
1IshaBlue158.51
2KunalRed1662
3MeherGreen152.30
Name and House are qualitative; Height is continuous; Siblings is discrete

Data collection

Data collection means gathering facts from relevant sources so that they can be analysed. First decide what data you need and why.

Primary data

  • Collected first-hand by you
  • Surveys and questionnaires (Google Forms)
  • Interviews, observation, experiments
  • Sensors: weather station, fitness band
  • Accurate for your purpose, but takes time

Secondary data

  • Already collected by someone else
  • Government portals (data.gov.in), census
  • Reports, newspapers, research papers
  • Company records, websites
  • Quick and cheap, but may not fit exactly
Sources of data

Data storage

Collected data must be stored safely so it can be used later. Small data may be kept in files (text, CSV, spreadsheet); large or shared data is kept in databases (MySQL, which you study in Unit 4). Storage can be on local devices (HDD, SSD, pen drive) or in the cloud (Google Drive, OneDrive, company servers).

📁 survey_project/
├── raw_responses.csv     # data exactly as collected
├── clean_data.csv        # after removing errors
├── analysis.py           # Python program for processing
└── report.pdf            # final information with charts
A tidy way to store a small data project
💡 Good practice

Keep a backup copy, never overwrite raw data, name files clearly with dates, and protect personal data with passwords.

Data processing

Data processing is the set of operations that convert raw data into useful information.

CollectgatherCleanremove errorsOrganisesort, group, storeAnalysecalculate, comparePresenttables, chartsnew questions lead to new data
Data processing cycle
OperationExample
Validation / cleaningRemove a blank or impossible value (age = 250)
SortingArrange students by marks
ClassificationGroup students by house or grade
CalculationTotal, average, percentage
SummarisationClass result: pass %, topper
ReportingCharts and tables for the principal

Cleaning and processing data in Python

Real survey data is messy: extra spaces, words instead of numbers, blanks and impossible values. Python can clean it:

Python
# Raw survey data: hours of screen time per day
responses = ['3', '5', ' 2', 'four', '6', '', '3', '25']
clean = []
for r in responses:
    r = r.strip()
    if r.isdigit() and 0 <= int(r) <= 24:     # keep only valid hours
        clean.append(int(r))
print('Raw responses :', len(responses))
print('Valid values  :', clean)
print('Average hours :', round(sum(clean) / len(clean), 2))
Raw responses : 8 Valid values : [3, 5, 2, 6, 3] Average hours : 3.8

Turning data into information:

Python
# Data -> information: classify readings
readings = {'Mon': 41, 'Tue': 38, 'Wed': 44, 'Thu': 36, 'Fri': 45}
for day, temp in readings.items():
    label = 'Heatwave' if temp >= 40 else 'Normal'
    print(day, temp, label)
hot = [d for d, t in readings.items() if t >= 40]
print('Heatwave days:', len(hot), hot)
Mon 41 Heatwave Tue 38 Normal Wed 44 Heatwave Thu 36 Normal Fri 45 Heatwave Heatwave days: 3 ['Mon', 'Wed', 'Fri']

Summary & practice

  • Data = raw facts; information = processed, meaningful data.
  • Structured vs unstructured; qualitative vs quantitative (discrete/continuous).
  • Primary data is collected by you; secondary data already exists.
  • Processing: collect → clean → organise → analyse → present.
✅ Practice

Classify each as primary/secondary and structured/unstructured: (a) A Google Form you made for classmates (b) Census of India tables (c) Photos of a science fair (d) Your school's attendance spreadsheet.

Answers: (a) primary, structured (b) secondary, structured (c) primary, unstructured (d) secondary for you (school collected it), structured.

Frequently Asked Questions

What is the difference between data and information?
Data is raw facts without context, like 41, 38, 44. Information is processed data that has meaning, like "there were three heatwave days this week".
What is primary data?
Data collected first-hand by you for your purpose, for example through a survey, interview, experiment or observation.
Name some data storage devices.
Hard disk drives, solid state drives, pen drives, memory cards, optical discs and cloud storage. Organised data is usually kept in files or databases.
← Class 11 Informatics Practices
🔗

Share this topic with a friend

यह topic किसी दोस्त को भेजें

Found it useful? Send it to a classmate learning the same thing.

अच्छा लगा? जो दोस्त यही सीख रहा है, उसे भेज दीजिए।

Next topicStatistics: Mean, Median, Mode, SD Your progress: 10 / 20 (50%) · Lesson 11 / 20 Continue →

How was this lesson?

Your feedback helps us make the content better.

Write a review or suggestion (optional)

After approval, your name and city may appear publicly with your review. Please do not write your email or phone number.

▶ CodingEasily on YouTube

Learn with video lessons in easy Hindi

Featured video: RDBMS Part 3 – Class XI Commerce IT

▶ Subscribe – it’s free