~/talk

Mind the Gap! Bridging the pandas – scikit learn dtype divide

slides:none on file

Claim is that pandas holds labeled, heterogeneous, messy tabular data while scikit-learn expects homogeneous NumPy arrays, and that mismatch breaks workflows. Demonstrations show factorize misorders categories and induces spurious numeric spacing, pd.get_dummies is the right one-off fix, and pandas’ Categorical dtype saves category lists for robust transforms. A concrete TransformerMixin implementation is built to dummy‑encode, integrate with pipelines, serialize, and inverse_transform back to DataFrame; it works but leaves a dtype quirk (ints become floats).

AI-written summary · about

  1. 0:00pandas vs scikit-learn divide
  2. 2:29Why pandas and scikit-learn clash
  3. 5:37Categorical column pitfalls
  4. 8:27Dummy encoding the correct approach
  5. 10:33Production-ready dummy encoding
  6. 14:25Custom scikit-learn transformer
  7. 21:17Inverse transform logic
  8. 32:27Simple vs custom transformers
  9. 35:44Q&A
  10. 36:48Future of pandas bridging
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.