Updated March 10, 2023
Introduction to DataSet Example
The following article provides an outline for DataSet Example. DataSet preferably defined as a collection of data has the data, which is basically over a tabular pattern. Being a part of data management model we can organize the data based on various types and classifications. Datum’s are the value that a dataset over wider and the type of data can be classified on, based on the type we have different DataSet types that can be used to classify and deal with the data then.
Examples of DataSet
Given below are the examples mentioned:
Example #1
Categorical DataSet
This data sets have categories of the data.
The example shows the category of data that can be divided into Male and Female. This data set can be used for further implementation over the Gender.
Code:
Name,Gender
John,Male
Shyam,Male
Tina,Female
Rhoina,Female
Robert,Male
Marco,Male
Output:
The same dataset example that gives the data as a type of food a person opts it can be either Veg/NonVeg.
Code:
Name,FoodOpt.
John,Veg
Shyam,NVeg
Tina,Veg
Rhoina,NVeg
Robert,Veg
Marco,Veg
Output:
Example #2
Multivariate DataSet
They have multiple variables with them and may have three or more than three types of variables.
Let’s check this by taking the multiple variables like length, breadth and height and calculation the area of it.
Code:
L,B,H,Area
2,2,2,8
3.2,3,5,45
2,6,4,48
The area calculation can be corresponding to l,b,h that are the derived parameters though.
Output:
Example #3
Correlation DataSet
These datasets have some relation with each other, that basically keeps a dependency of the values of that data set over each other. The data can be dependent on them and can be used for analysis.
Here we will try to analyze one data set that is a correlation data set, the one shows the year of birth and the current age of the named person though they are all correlated with each other.
Code:
Name,YOB,CurrentAge
John,1995,26
Shyam,2005,16
Tina,1996,25
Rhoina,2020,1
Robert,1997,24
Marco,2010,11
These are the correlation DataSet.
Output:
Example #4
Numerical DataSet
These are the numbered DataSet.
Code:
Name,YOB,CurrentAge
John,1995,26
Shyam,2005,16
Tina,1996,25
Rhoina,2020,1
Robert,1997,24
Marco,2010,11
Output:
Example #5
Bivariate DataSet
A data set having the two Variables having a relationship between them can be termed as Bivariate DataSet.
Let’s check the data which determines the percentage, rank and then the status of the data which comes under Bivariate DataSet.
Code:
Name,Percentage,Rank,Status
John,75,3,Pass
Shyam,65,4,Pass
Tina,45,6,Fail
Rhoina,94,1,Pass
Robert,92,2,Pass
Marco,46,5,Fail
Output:
Example #6
File based DataSet
A DataSet is completely stored in a file format in a machine that is categorized under this type.
This format can be of any format starting from ORC, Parquet, Normal Text File.
Output:
Example #7
DataBase DataSet
This type of dataset is stored within a database. The data is organized into tables and the dataset is stored there.
We will try to see the data that is stored in a table with columns named AlbumID, Title, Artist, Column.
Code:
"AlbumId","Title","ArtistId","Column1"
1,For Those About To Rock We Salute You,1,
2,Balls to the Wall,2,
3,Restless and Wild,2,
4,Let There Be Rock,1,
5,Big Ones,3,
6,Jagged Little Pill,4,
7,Facelift,5,
8,Warner 25 Anos,6,
9,Plays Metallica By Four Cellos,7,
10,Audioslave,8,
11,Out Of Exile,8
Output:
Example #8
Web DataSet
This type of dataset is a collection of data stored from the internet site, it contains web data that is stored.
Code:
WFS dataset .
Example #9
GRAPH DataSet
This type of data set is a Graph Data set where points are plotted to a given point in a graph and the data can be plotted against it.
Output:
Example #10
Spatial DataSet
The DataSet is used to plot the spatial point over the dataset about the shape, location and relationship.
Output:
More examples and operations over DataSet:
Finding the Mean, Median, Mode.
{4,5,6,11,6,8}
Mean: Sum of all / total number of elements
42/6 = 7
Median:
4,5,6,6,8,11
Median: 6
Mode: 6
In this way, we can work over a given data set to calculate the Mean, Median, Mode.
Conclusion – DataSet Example
In this article, we saw examples of data set. We tried to understand how basically a data set can be of and the examples mentioned helped us to understand this more precisely. Data Sets can be of various types that categorize the type of data to be used and over this article, we tried to analyze how this data set can be of. This data set is widely used in the industry for the purpose of research and data modelling and categorization of them with the example will help us a lot while working with these data sets.
Recommended Articles
This is a guide to DataSet Example. Here we discuss the introduction and examples of the DataSet for better understanding. You may also have a look at the following articles to learn more –