Skip to content

Upgrading pandas 0.21 to 0.22

Breaking0.21.1 → 0.22.0Breaking2New1

BreakingUpgrade verdict

2 breaking changes.

  • Adding up an empty list of numbers, or a list where every value is missing, now gives 0 rather than 'not a number'.
  • Multiplying together an empty list of numbers, or a list where every value is missing, now gives 1 rather than 'not a number'.
2 items need code or config changes
Breaking2
The sum of an empty or all-NA Series is now 0 instead of NaN.
SeriesSeries.sum()
The product of an empty or all-NA Series is now 1 instead of NaN.
SeriesSeries.prod()

Generated by DepDelta from published Python source. Not mixed with prose notes.

  • changed: method BaseGrouper.aggregate(values, how, axis=…) → method BaseGrouper.aggregate(values, how, axis=…, min_count=…)
  • changed: function nanprod(values, axis=…, skipna=…) → function nanprod(values, axis=…, skipna=…, min_count=…)
  • changed: function nansum(values, axis=…, skipna=…) → function nansum(values, axis=…, skipna=…, min_count=…)