vault backup: 2026-01-16 13:26:30

This commit is contained in:
2026-01-16 13:26:30 +01:00
parent 5ac27a98d0
commit e51f022340
3 changed files with 33 additions and 6 deletions

View File

@@ -56,11 +56,38 @@ Ideen:
```python
# Hacky One-Liner
unis_nd['Sponsorship'].value_counts().plot(
kind='bar',
title="Vergleich Finanzierungstatus Universitäten Niedersachsen",
color=["#f9e2af", "#cba6f7"]
# Plot
fig, ax = plt.subplots(figsize=(8,5))
ax.set_title(
"Verteiltung Durchschn. Bruttomonatsverdienste ohne Sonderz. (nach Geschlecht)"
)
sb.kdeplot(
female, label="Weiblich",
color="#fe640b", fill=True,
alpha=0.5, ax=ax
)
sb.kdeplot(
male, label="Männlich",
color="#40a02b", fill=True,
alpha=0.5, ax=ax
)
ax.legend()
text = f'''tstat: {t_stat:.2f}
pvalue: {p_value:.3f}
Pay Gap: {unbereinigter_gpg:.2f}%
Abs. Diff: {bruttoeinkommen_diff:.2f}€'''
ax.text(0.95, 0.75, text,
transform=ax.transAxes,
fontsize=10,
verticalalignment='top',
horizontalalignment='right',
bbox=dict(
facecolor='white',
edgecolor='black',
pad=5, alpha=0.8
)
)
plt.show()
```