Amandeep Daa
Amandeep Daa
The aim of this project is to demonstrate the use of various Python libraries such as
Numpy, Seaborn, Pandas, Math, Statistical, and Matplotlib. These libraries are
essential for handling data, performing mathematical operations, statistical
analysis, and visualizing data. The goal is to provide a comprehensive
understanding of these libraries and how they can be combined for data analysis.
2. Task to be done:
1. Data Generation and Processing: Use Numpy for creating sample data.
2. Data Manipulation: Use Pandas for data handling and manipulation.
3. Statistical Analysis: Use the Statistics library for basic statistics.
4. Mathematical Operations: Use the Math library for performing various
mathematical operations.
5. Data Visualization: Use Matplotlib for creating visual plots and
Seaborn for advanced visualizations.
3. Algorithm/Flowchart:
# Importing Libraries
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import math
import statistics as stats
4. Code for experiment/practical:
# Importing Libraries
import numpy as np
import pandas as pd
import math
df = pd.DataFrame(data, columns=['Value'])
df['Square'] = df['Value']**2
df['Log'] = np.log(df['Value'])
df['Sin'] = np.sin(df['Value'])
mean = stats.mean(df['Value'])
median = stats.median(df['Value'])
std_dev = stats.stdev(df['Value'])
variance = stats.variance(df['Value'])
print(f"Mean: {mean}")
print(f"Median: {median}")
print(f"Variance: {variance}")
sqrt_of_mean = math.sqrt(mean)
log_of_mean = math.log(mean)
plt.figure(figsize=(10, 6))
plt.title('Histogram of Values')
plt.xlabel('Value')
plt.ylabel('Frequency')
plt.show()
plt.figure(figsize=(10, 6))
sns.boxplot(x=df['Value'], color='orange')
plt.title('Boxplot of Values')
plt.show()
sns.pairplot(df)
plt.show()
corr_matrix = df.corr()
plt.figure(figsize=(8, 6))
plt.title('Correlation Heatmap')
plt.show()plt.show()
5. Result/Output/Writing Summary:
Learning outcomes (What I have learnt):
Evaluation Grid: