ANSWERS - End Sem Lab Excel for Data Science
ANSWERS - End Sem Lab Excel for Data Science
2) By your own dataset, apply the Pivot Table and write the interpretation of the
data
Creating a Pivot Table and Interpreting the Data
Understanding Pivot Tables
Pivot tables are a powerful tool in Excel that allow you to summarize and analyze large datasets
by rearranging and grouping data. They are particularly useful for identifying trends, patterns,
and relationships within your data.
Example Dataset: Sales Data
Let's assume we have a dataset of sales data:
Region Product Sales Date
North Product A 1000 01/01/2024
South Product B 800 02/01/2024
North Product A 1200 03/01/2024
East Product C 500 01/01/2024
West Product B 700 02/01/2024
Goal: Analyze the total sales for each product by region.
Steps:
1. Select your data: Highlight the entire dataset, including the headers.
2. Insert a PivotTable: Go to the "Insert" tab and click "PivotTable." Choose a location
for the PivotTable.
3. Drag fields to the PivotTable:
o Drag "Region" to the "Rows" area.
o Drag "Product" to the "Columns" area.
o Drag "Sales" to the "Values" area.
4. Choose an aggregation: By default, the "Values" field will be summed. If you need a
different aggregation (e.g., average, count), click the dropdown arrow in the "Values"
area and select the desired function.
Interpretation:
Once you've created the PivotTable, you'll see a summary of your data, organized by region
and product. In this example, the PivotTable might look like this:
Region Product A Product B Product C Grand Total
North 2200 0 0 2200
South 0 800 0 800
East 0 0 500 500
West 0 700 0 700
Grand Total 2200 1500 500 4200
From this PivotTable, you can easily see:
• The total sales for each product in each region.
• The total sales for each product across all regions.
• The total sales for each region across all products.
• The overall grand total of sales.
Additional Tips:
• You can add or remove fields from the PivotTable to change the level of detail in your
analysis.
• You can filter the data in the PivotTable to focus on specific subsets of your data.
• You can add calculated fields to the PivotTable to create new calculations based on
existing data.
By effectively using PivotTables, you can quickly and easily gain valuable insights from your
data.
3) By your own dataset, apply all the suitable charts and graphs
Creating Charts and Graphs Using a Hypothetical Dataset
Dataset: Monthly Sales Data
Month Sales
January 10000
February 12000
March 15000
April 11000
May 13000
*******