Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
โ† Basic Data Transformation ยท Lesson 3 of 9

Module Two

๐Ÿ“– Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
3
Module 2: Understanding Different Data Types and Formats

Module 2: Understanding Different Data Types and Formats

Welcome Back!

In Module 1, you learned what data and data transformation mean. You also discovered how to turn disorganised information into something more useful.

In this module, you will learn that data comes in different types and formats. Understanding these differences will help you organise and transform information correctly.

Imagine receiving a school record containing students' names, ages, examination scores, and registration dates. These pieces of information are not all the same type of data.

1. What Are Data Types?

A data type describes the kind of information stored in a computer system or dataset.

For example, a person's name is usually stored as text, while their age is stored as a number.

Computers use data types to understand how information should be stored, displayed, and processed.

Example: Student Information

Information Example Data Type
Student Name David Text
Age 13 Number
Examination Score 85.5 Decimal Number
Registration Date 24 November 2026 Date
Fee Paid True Boolean

2. Understanding Text Data

Text data contains letters, words, sentences, or a combination of letters and numbers.

It is commonly used to store names, addresses, descriptions, school subjects, and product information.

Examples of Text Data

  • Mary Johnson
  • Ibadan, Oyo State
  • Computer Science
  • CRMNuggets
  • My favourite subject is Mathematics.

Example: A School Registration Record

The student's name is Samuel Adewale. His name is text data because it contains letters.

His home city, Ibadan, is also text data.

Important Things to Know About Text

  • Text can contain letters and spaces.
  • Text can contain numbers when they are used as labels or identifiers.
  • Text can contain symbols such as @, #, and -.
  • Text can be changed from uppercase to lowercase.
Remember: A phone number such as 08012345678 is usually stored as text, not as a number for calculation. This helps preserve the first zero.

3. Understanding Numerical Data

Numerical data contains numbers. It is commonly used for counting, measuring, and performing calculations.

For example, a teacher can use numerical data to calculate students' examination scores.

Two Common Types of Numerical Data

A. Whole Numbers

Whole numbers do not contain decimal points.

Examples:

  • 5 students
  • 13 years old
  • 200 books
  • 50 examination questions

B. Decimal Numbers

Decimal numbers contain a decimal point.

Examples:

  • 75.5 marks
  • 12.5 kilograms
  • 3.75 litres
  • 25.50 as a money amount

Example: Calculating Examination Scores

Imagine that a student scores 70 marks in Mathematics and 80 marks in English.

Total score = 70 + 80 = 150

Because these values are numbers, the computer can add them together.

4. Understanding Date and Time Data

Date and time data help us record when something happened or when an activity will take place.

Examples of Date Data

  • 24 November 2026
  • 2026-11-24
  • 24/11/2026

Examples of Time Data

  • 8:00 AM
  • 2:30 PM
  • 14:30

Example: School Examination Timetable

Subject Examination Date Time
Mathematics 24 November 2026 9:00 AM
English 25 November 2026 10:30 AM
Basic Science 26 November 2026 12:00 PM

The examination dates and times help students know when to prepare for each subject.

5. Understanding Boolean Data

Boolean data is a special data type that has only two possible values:

  • True
  • False

It is used when a computer needs to know whether something is correct, available, completed, active, or not.

Example: Student Payment Records

Student School Fees Paid?
David True
Mary False
Samuel True

True means the payment has been recorded as completed. False means it has not been recorded as completed.

6. Understanding Rows, Columns, and Fields

When working with data, you will often see tables. A table helps us arrange information into rows and columns.

What Is a Row?

A row runs horizontally across a table. It usually contains information about one record.

What Is a Column?

A column runs vertically down a table. It usually contains the same type of information for different records.

What Is a Field?

A field is a particular category of information, such as Name, Age, or Score.

Example: Student Dataset

Name Age Class Score
David 13 JSS 2 85
Mary 12 JSS 2 78
Samuel 14 JSS 3 90
  • The table has four columns.
  • There are three student records.
  • Name, Age, Class, and Score are fields.
  • Each student's information occupies one row.

7. Introduction to Common Data Formats

A data format describes how information is arranged and stored. Different applications use different formats to save and share data.

Let's look at three common formats.

A. CSV (Comma-Separated Values)

CSV is a simple file format used to store information in rows and columns. Each value is separated by a comma.

CSV files are commonly used to move information between spreadsheet applications and other computer programs.

Example of CSV Data

Name,Age,Class,Score
David,13,JSS 2,85
Mary,12,JSS 2,78
Samuel,14,JSS 3,90

The commas separate the different fields. Each new line represents another record.

B. JSON (JavaScript Object Notation)

JSON is a format used to store and exchange structured data between applications.

Websites and computer programs often use JSON when they communicate with each other.

Example of JSON Data

{
  "name": "David",
  "age": 13,
  "class": "JSS 2",
  "score": 85
}

The information is organised using names and values. For example, "name" is a key and "David" is its value.

C. Excel Spreadsheet

Microsoft Excel is a spreadsheet application used to organise, calculate, and analyse information.

An Excel workbook can contain one or more worksheets. Each worksheet contains rows, columns, and cells.

Example of Spreadsheet Data

Cell A Cell B Cell C
Name Age Score
David 13 85
Mary 12 78

Each box in a spreadsheet is called a cell. A cell is identified by its column letter and row number, such as A1 or B2.

8. Comparing CSV, JSON, and Excel

Format How It Works Common Use
CSV Stores values separated by commas. Sharing simple table data.
JSON Stores information using keys and values. Sharing data between applications and APIs.
Excel Organises data in spreadsheet cells. Calculations, reports, and data organisation.
Remember: CSV, JSON, and Excel are not the same thing. They are different ways of storing and organising information.

9. Why Data Types and Formats Matter in Data Transformation

Before transforming data, you need to understand what kind of information you are working with.

Imagine that a school receives a student's age as the text value "13" instead of a number.

The computer may treat it differently from the numerical value 13. If you want to calculate the average age of students, you may need to convert the text into a number first.

Important: Do not change every number into a numerical data type. Phone numbers, student identification numbers, and postal codes are often better stored as text because they are labels, not values used for calculations.

10. Practical Activity: Identify Different Data Types

Your Challenge!

A school in Ibadan has collected the following information about its students.

Field Value
Student NameGrace
Age13
Mathematics Score88.5
Registration Date24 November 2026
School Fees PaidTrue
Phone Number08012345678

Complete these tasks:

  1. Identify the text data.
  2. Identify the whole number.
  3. Identify the decimal number.
  4. Identify the date.
  5. Identify the Boolean value.
  6. Explain why the phone number should be stored as text.

You can complete this activity in your notebook, Microsoft Excel, or Google Sheets.

11. Module Summary

In this module, you learned that information comes in different data types and formats.

  • Text: Names, addresses, and descriptions.
  • Numbers: Ages, scores, and quantities.
  • Dates and Time: When an event happens.
  • Boolean: True or False values.
  • CSV: Data separated by commas.
  • JSON: Data organised using keys and values.
  • Excel: Data arranged in spreadsheet cells.
Key Lesson: Before transforming data, understand what type of information you have and the format in which it is stored.

12. Module 2 Assessment

Answer all ten questions to test your understanding. Select one correct answer for each question.

1. What does a data type describe?



2. Which of these is an example of text data?



3. Which of these is a decimal number?



4. Which data type is commonly used for dates?



5. Which two values are used in Boolean data?



6. What is a row in a data table?



7. What does CSV stand for?



8. Which format commonly uses keys and values?



9. What is a cell in Microsoft Excel?



10. Why is a phone number usually stored as text?



๐Ÿ† Get Certified

๐Ÿ”’

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (โ‚ฆ2,000 or 20,000 coins), and get a verified certificate with your name on it.

๐ŸŽ“ Sign Up to Get Certified
๐Ÿ› ๏ธ Practice Tools
Hands-on simulators & labs - subscription required.
โ†’
๐ŸŽฏ Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
โ†’