apmtools 0.2.29__tar.gz → 0.2.31__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: apmtools
3
- Version: 0.2.029
3
+ Version: 0.2.31
4
4
  Summary: A collection of tools for processing air pollution monitoring data
5
5
  Project-URL: Homepage, https://github.com/federlorenz/apmtools
6
6
  Author-email: Federico Lorenzetti <lorenzetti.federico@gmail.com>
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "apmtools"
7
- version = "0.2.029"
7
+ version = "0.2.31"
8
8
  authors = [
9
9
  { name="Federico Lorenzetti", email="lorenzetti.federico@gmail.com" },
10
10
  ]
@@ -1440,17 +1440,17 @@ class Summary(pd.DataFrame):
1440
1440
 
1441
1441
  if isinstance(frequency, str):
1442
1442
  if grouping_by != None:
1443
- output = df.groupby(grouping_by+[frequency])
1443
+ output = df.groupby(grouping_by+[frequency], dropna=False)
1444
1444
  else:
1445
- output = df.groupby([frequency])
1445
+ output = df.groupby([frequency], dropna=False)
1446
1446
  if isinstance(frequency, list):
1447
1447
  if grouping_by != None:
1448
- output = df.groupby(grouping_by+frequency)
1448
+ output = df.groupby(grouping_by+frequency, dropna=False)
1449
1449
  else:
1450
- output = df.groupby(frequency)
1450
+ output = df.groupby(frequency, dropna=False)
1451
1451
  if frequency == None:
1452
1452
  if grouping_by != None:
1453
- output = df.groupby(grouping_by)
1453
+ output = df.groupby(grouping_by, dropna=False)
1454
1454
  else:
1455
1455
  output = df
1456
1456
 
@@ -1473,6 +1473,7 @@ class Summary(pd.DataFrame):
1473
1473
 
1474
1474
  return output
1475
1475
 
1476
+
1476
1477
  def get_monitor(self, value):
1477
1478
 
1478
1479
  out = self.subset({"monitor": [value]})