Skip to content

Commit

Permalink
Update example to format code in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jbousquin committed Aug 31, 2023
1 parent 0fe77fc commit ee96ff6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions harmonize_wq/visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,13 @@ def map_counts(df_in, gdf, col=None):
0 ID1 POINT (1.00000 2.00000)
1 ID2 POINT (2.00000 1.00000)
Combine these to get an aggregation of results per station
cnt_gdf = harmonize.visualize.map_counts(df_in, gdf)
Combine these to get an aggregation of results per station
>>> cnt_gdf = harmonize.visualize.map_counts(df_in, gdf)
Plotting these aggegate results is then much easier
These aggegate results can then be plotted
cnt_gdf.plot(column='cnt', cmap='Blues', legend=True)
>>> cnt_gdf.plot(column='cnt', cmap='Blues', legend=True)
"""
# Column for station
loc_id = 'MonitoringLocationIdentifier'
Expand Down

0 comments on commit ee96ff6

Please sign in to comment.