pthelma 2.0.0__cp311-cp311-musllinux_1_2_x86_64.whl → 2.1.1__cp311-cp311-musllinux_1_2_x86_64.whl

Sign up to get free protection for your applications and to get access to all the features.
haggregate/haggregate.py CHANGED
@@ -75,8 +75,8 @@ class Aggregation:
75
75
  def get_result_flags(self):
76
76
  max_count = int(pd.Timedelta(self.result.time_step) / self.source.freq)
77
77
  values_count = self.resampler.count()
78
- self.result.data["flags"] = (values_count < max_count).apply(
79
- lambda x: self.missing_flag if x else ""
78
+ self.result.data["flags"] = (max_count - values_count).apply(
79
+ lambda x: self.missing_flag.format(x) if x else ""
80
80
  )
81
81
 
82
82