python
17 lines · 1 tab
Dr. Elena Vasquez
Apr 2026
1 tab
import pandas as pd
df = pd.read_parquet('churn_training.parquet')
print('shape:', df.shape)
print('target balance:', df['churned'].value_counts(normalize=True).round(3))
print('missing ratio:')
print(df.isna().mean().sort_values(ascending=False).head(15))
numeric = df.select_dtypes(include=['number'])
print('top correlations with target:')
correlations = numeric.corr(numeric_only=True)['churned'].sort_values(key=abs, ascending=False)
print(correlations.head(10))
high_cardinality = df.nunique().sort_values(ascending=False)
print('high-cardinality features:')
print(high_cardinality.head(10))
1 file · python
Explain with highlit
My EDA is opinionated because it has to answer modeling questions quickly. I care about label balance, leakage candidates, missingness patterns, monotonic relationships, and whether categorical levels explode in production. A repeatable checklist prevents me from chasing interesting but low-value detours.
Share this code
Here's the card — post it anywhere.