Skip to content

Commit

Permalink
spread out example df for we_date.measure_mask()
Browse files Browse the repository at this point in the history
  • Loading branch information
jbousquin committed Aug 2, 2024
1 parent a504e8f commit 6a39fa5
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions harmonize_wq/wq_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a39fa5

Please sign in to comment.