code: def zsum(s, *args, **kwargs):
      
      return 0 if s.empty else s.sum(*args, **kwargs)
docs: pandas 0.21.0 changes sum() behavior so that the result of applying sum
      over an empty DataFrame is NaN.
  
      Meant to be set as pd.Series.zsum = zsum.