vault backup: 2026-01-16 13:26:30
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -56,11 +56,38 @@ Ideen:
|
|||||||
|
|
||||||
|
|
||||||
```python
|
```python
|
||||||
# Hacky One-Liner
|
# Plot
|
||||||
unis_nd['Sponsorship'].value_counts().plot(
|
fig, ax = plt.subplots(figsize=(8,5))
|
||||||
kind='bar',
|
ax.set_title(
|
||||||
title="Vergleich Finanzierungstatus Universitäten Niedersachsen",
|
"Verteiltung Durchschn. Bruttomonatsverdienste ohne Sonderz. (nach Geschlecht)"
|
||||||
color=["#f9e2af", "#cba6f7"]
|
)
|
||||||
|
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'''t‑stat: {t_stat:.2f}
|
||||||
|
p‑value: {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()
|
plt.show()
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user