Professional Documents
Culture Documents
Be A 65 Ads Exp 2
Be A 65 Ads Exp 2
Be A 65 Ads Exp 2
02
PART B
Roll No.: A7 Name: Ritika Dwivedi
Class: BE-A(COMP) Batch: A1
Date of Experiment: 16-02-24 Date of Submission: 16-02-24
Grade:
import pandas as pd
import matplotlib.pyplot as plt
import pandas as pd
import matplotlib.pyplot as plt
plt.tight_layout()
plt.show()
ScatterPlot
import pandas as pd
import matplotlib.pyplot as plt
# Define variables
x = data['sqft_living']
y = data['price']
size_attribute = 'bathrooms' # Using 'bathrooms' to adjust the size of the points
plt.grid(True)
plt.show()
Bubble Chart
import pandas as pd
import matplotlib.pyplot as plt
# Define variables
x = data['sqft_living']
y = data['price']
bedrooms = data['bedrooms']
bathrooms = data['bathrooms']
plt.grid(True)
plt.show()
Histogram
import pandas as pd
import matplotlib.pyplot as plt
plt.show()
import pandas as pd
import matplotlib.pyplot as plt
# Select the column for which you want to create the density chart
column_to_plot = 'price'
Line Chart:
ScatterPlot:
Bubble Chart:
Histogram:
Density Plot:
B.3 Observations and learning:
We have hence observed the various visualization techniques using python and gained various
insights. Python provides various libraries such as Matplotlib, Seaborn, Plotly, Bokeh, Pandas, etc.
that come with different features for visualizing data. All these libraries come with different
features and can support various types of graphs. These libraries offer different levels of complexity
and flexibility, so it is important to choose the right one depending on your needs and the type of
data you want to visualize.
Data visualization techniques are useful for understanding complex data patterns, communicating
information, identifying outliers and anomalies, spotting areas for improvement, and making data-
driven decisions.
B.4 Conclusion:
Hence, we can conclude that we have see the different types of visualizations available using the
python programming language.