apmtools 0.2.3__tar.gz → 0.2.4__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.
- {apmtools-0.2.3 → apmtools-0.2.4}/PKG-INFO +1 -1
- {apmtools-0.2.3 → apmtools-0.2.4}/pyproject.toml +1 -1
- {apmtools-0.2.3 → apmtools-0.2.4}/src/apmtools/classes.py +6 -3
- {apmtools-0.2.3 → apmtools-0.2.4}/.gitignore +0 -0
- {apmtools-0.2.3 → apmtools-0.2.4}/LICENSE +0 -0
- {apmtools-0.2.3 → apmtools-0.2.4}/README.md +0 -0
- {apmtools-0.2.3 → apmtools-0.2.4}/src/apmtools/__init__.py +0 -0
- {apmtools-0.2.3 → apmtools-0.2.4}/src/apmtools/data_processing.py +0 -0
- {apmtools-0.2.3 → apmtools-0.2.4}/src/apmtools/functions.py +0 -0
- {apmtools-0.2.3 → apmtools-0.2.4}/src/apmtools/legacy.py +0 -0
- {apmtools-0.2.3 → apmtools-0.2.4}/src/apmtools/shiny/__init__.py +0 -0
- {apmtools-0.2.3 → apmtools-0.2.4}/src/apmtools/shiny/summary.py +0 -0
- {apmtools-0.2.3 → apmtools-0.2.4}/src/apmtools/units.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: apmtools
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.004
|
|
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>
|
|
@@ -252,7 +252,7 @@ class Dataset(DictionaryPlus):
|
|
|
252
252
|
|
|
253
253
|
def subset(self, filter_dict={}, filter_style='all', condition=None):
|
|
254
254
|
"""
|
|
255
|
-
Return a subset of a
|
|
255
|
+
Return a subset of a Dataset, specified in the parameter filter_dict (itself a dictionary) or condition (a function that takes at minimum a value from the dictionary as an input parameter, and return True/False if some condition specified in the function is met. Typically a lambda function of the form lambda x: True if condition else False)
|
|
256
256
|
filter_dict is {attrib:["attrib_value_x","attrib_value_y",..]}, where
|
|
257
257
|
attrib is an attribute of the elements of dictionary, and attrib_value is a list
|
|
258
258
|
of the values of such attrib that the elements of returned dictionary can have
|
|
@@ -885,7 +885,7 @@ class Summary(pd.DataFrame):
|
|
|
885
885
|
|
|
886
886
|
def subset(self, filter_dict={}, filter_style='all'):
|
|
887
887
|
"""
|
|
888
|
-
Return a subset of a
|
|
888
|
+
Return a subset of a Summary, specified in the parameter filter_dict (itself a dictionary) or condition (a function that takes at minimum a value from the dictionary as an input parameter, and return True/False if some condition specified in the function is met. Typically a lambda function of the form lambda x: True if condition else False)
|
|
889
889
|
filter_dict is {attrib:["attrib_value_x","attrib_value_y",..]}, where
|
|
890
890
|
attrib is an attribute of the elements of dictionary, and attrib_value is a list
|
|
891
891
|
of the values of such attrib that the elements of returned dictionary can have
|
|
@@ -1401,7 +1401,10 @@ class Summary(pd.DataFrame):
|
|
|
1401
1401
|
return output
|
|
1402
1402
|
|
|
1403
1403
|
def get_monitor(self, value):
|
|
1404
|
-
|
|
1404
|
+
|
|
1405
|
+
out = self.subset({"monitor": [value]})
|
|
1406
|
+
out = out.dropna(axis=1,how="all")
|
|
1407
|
+
return out
|
|
1405
1408
|
|
|
1406
1409
|
def plot_app(
|
|
1407
1410
|
self,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|