fin separation front/back

This commit is contained in:
hugo.pradier2
2024-06-23 17:44:26 +02:00
parent 15e1674cb2
commit 7dafa78bc4
13 changed files with 201 additions and 131 deletions

View File

@@ -0,0 +1,16 @@
import matplotlib.pyplot as plt
import seaborn as sns
def plot_histogram(data, column):
fig, ax = plt.subplots()
ax.hist(data[column].dropna(), bins=20, edgecolor='k')
ax.set_title(f"Histogram of {column}")
ax.set_xlabel(column)
ax.set_ylabel("Frequency")
return fig
def plot_boxplot(data, column):
fig, ax = plt.subplots()
sns.boxplot(data=data, x=column, ax=ax)
ax.set_title(f"Boxplot of {column}")
return fig