🔥Limited Offer: Get 50% OFFon AI & Full Stack Courses🔥
Back to Data Science Notes
Topic #4

DS Database Table


Database Table

A database table is a table with structured data.

The following table shows a database table with health data extracted from a sports watch:

Duration Average_Pulse Max_Pulse Calorie_Burnage Hours_Work Hours_Sleep
30 80 120 240 10 7
30 85 120 250 10 7
45 90 130 260 8 7
45 95 130 270 8 7
45 100 140 280 0 7
60 105 140 290 7 8
60 110 145 300 7 8
60 115 145 310 8 8
75 120 150 320 0 8
75 125 150 330 8 8

This dataset contains information of a typical training session such as duration, average pulse, calorie burnage etc.


Database Table Structure

A database table consists of column(s) and row(s):

Col 1 Col 2 Col 3 Col 4 Col 5 Col 6 Col 7
Column 1 Column 2 Column 3 Column 4 Column 5 Column 6
Duration Average_Pulse Max_Pulse Calorie_Burnage Hours_Work Hours_Sleep
Row 1 30 80 120 240 10 7
Row 2 30 85 120 250 10 7
Row 3 45 90 130 260 8 7
Row 4 45 95 130 270 8 7
Row 5 45 100 140 280 0 7
Row 6 60 105 140 290 7 8
Row 7 60 110 145 300 7 8
Row 8 60 115 145 310 8 8
Row 9 75 120 150 320 0 8
Row 10 75 125 150 330 8 8

A row is a horizontal representation of data.

A column is a vertical representation of data.


Variables

A variable is defined as something that can be measured or counted.

Examples can be characters, numbers or time.

In the example under, we can observe that each column represents a variable.

Duration Average_Pulse Max_Pulse Calorie_Burnage Hours_Work Hours_Sleep
30 80 120 240 10 7
30 85 120 250 10 7
45 90 130 260 8 7
45 95 130 270 8 7
45 100 140 280 0 7
60 105 140 290 7 8
60 110 145 300 7 8
60 115 145 310 8 8
75 120 150 320 0 8
75 125 150 330 8 8

There are 6 columns, meaning that there are 6 variables (Duration, Average_Pulse, Max_Pulse, Calorie_Burnage, Hours_Work, Hours_Sleep).

There are 11 rows, meaning that each variable has 10 observations.

Note: But if there are 11 rows, how come there are only 10 observations? It is because the first row is the label, meaning that it is the name of the variable.

Want to go beyond the notes?

Join CodingNow 2.0's Data Science course — live mentorship, real projects, and 100% placement support.

Enroll Now — Free Demo Available

DS Database Table – FAQs

Quick answers about learning DS Database Table in Data Science.

This free note from CodingNow 2.0 explains DS Database Table in Data Science — concept, syntax and worked code examples you can copy, run and revise before interviews.
Yes. Every Data Science topic on CodingNow 2.0, including DS Database Table, is 100% free with no signup required.
With focused practice, most students grasp DS Database Table in 1–3 days from these notes; pairing it with CodingNow 2.0's mentor-led course takes you to job-ready depth faster.
Use the code examples in this note, then ask doubts for free on the CodingNow 2.0 Community (/community) — expert instructors answer within 24 hours.
WhatsApp
Call NowEnroll Now