PyData Puzzlers
summary
Live quiz of sharp Python/Pandas gotchas: a function that returns None can still leave a prior integer visible because of object reuse, float equality and NaN produce counterintuitive results, a left join promotes int columns to float when NaN appears, pandas.to_datetime misparses day/month when dayfirst=False, sklearn.train_test_split advances the RNG so a single seed doesn’t guarantee repeated sequences, and TfidfVectorizer defaults to L2 normalization and smooth_idf with added ones, causing unexpected TF‑IDF magnitudes.
AI-written summary · about
