intial commit (forked from private repo)

This commit is contained in:
2025-04-11 11:08:28 +02:00
commit 3bdd37f46c
154 changed files with 45901 additions and 0 deletions

13
extracted_cells/cell6.py Normal file
View File

@ -0,0 +1,13 @@
# Überprüfen der Verteilung der Zielklasse
plt.figure(figsize=(8, 6))
sns.countplot(x='income', data=df)
plt.title('Verteilung der Einkommensklassen')
plt.xlabel('Einkommen')
plt.ylabel('Anzahl')
plt.savefig('output/Verteilung_Einkommensklassen.png', dpi=300)
plt.show()
# Prozentuale Verteilung berechnen
income_counts = df['income'].value_counts(normalize=True) * 100
print("Prozentuale Verteilung der Einkommensklassen:")
print(income_counts)