Ibm ps.1 Trayambak.
Ibm ps.1 Trayambak.
Q.8-Understand the line and bar chart .When to create a and how to creat. Ans-
Line and bar charts are both common types of data visualizations used to display information, but
they serve different purposes and are created differently.
Line Charts
When to Use:
● Trend Analysis:* To show changes over time or trends.
How to Create:
1) Identify Your Data: Determine the continuous variable (usually time) for the x-axis and
the value for the y-axis.
2) Plot Points: Place points on the chart where each pair of x and y values intersect.
3) Connect Points: Draw lines between the points to visualize the trend.
4) Customize: Add titles, labels, and legends for clarity.
Example:
A line chart showing monthly average temperatures over a year.
Bar Charts:
When to Use:
1) Categorical Data: To compare discrete categories or groups.
2) Comparisons: To show differences between items, such as sales figures for
different products or survey responses.
3) Count Data: When dealing with counts or frequencies of categories.
How to Create:
1. Identify Your Data: Determine the categories for the x-axis and the values for the y-axis.
2. Draw Bars: For each category, draw a bar whose height corresponds to the value.
3. Customize: Add titles, labels, and legends to enhance readability.
Example:
A bar chart comparing sales figures of different products in a quarter.
In summary, use line charts to illustrate trends over time or continuous data and bar charts to
compare discrete categories or counts.
Q.9- Explain the difference between data analysis and data science.
1- Explare data
i- Cleanse data
Any - Exploratory Data Analysis (EDA) is an analysis approach that identifies general patterns in
the data. These patterens include outliers and features of the data that might be unexpected EDA is
important you informing decisions by revealing patterns, not by confirming or rejecting
assumptions.