From 6a39fa5c94a869c6fc3616e11988e6c27e19fd89 Mon Sep 17 00:00:00 2001 From: Bousquin Date: Fri, 2 Aug 2024 17:11:29 -0500 Subject: [PATCH] spread out example df for we_date.measure_mask() --- harmonize_wq/wq_data.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/harmonize_wq/wq_data.py b/harmonize_wq/wq_data.py index 4506153..417d8f1 100644 --- a/harmonize_wq/wq_data.py +++ b/harmonize_wq/wq_data.py @@ -567,9 +567,16 @@ def measure_mask(self, column=None): >>> from pandas import DataFrame >>> from numpy import nan - >>> df = DataFrame({'CharacteristicName': ['Phosphorus', 'Temperature, water', 'Phosphorus', 'Phosphorus',], - ... 'ResultMeasure/MeasureUnitCode': ['mg/l as P', nan, 'mg/l', 'mg/l',], - ... 'ResultMeasureValue': ['1.0', '67.0', '10', 'None'], + >>> df = DataFrame( + ... { + ... 'CharacteristicName': [ + ... 'Phosphorus', + ... 'Temperature, water', + ... 'Phosphorus', + ... 'Phosphorus', + ... ], + ... 'ResultMeasure/MeasureUnitCode': ['mg/l as P', nan, 'mg/l', 'mg/l',], + ... 'ResultMeasureValue': ['1.0', '67.0', '10', 'None'], ... }) >>> df CharacteristicName ResultMeasure/MeasureUnitCode ResultMeasureValue