Skip to content

Commit efefd62

Browse files
willingclwasser
authored andcommitted
fix a few more spacing style errors
1 parent d64118f commit efefd62

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

code-workflow-logic/python-functions-multi-parameters.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ First, add the code line to calculate a mean along a specified axis.
171171

172172
```python
173173
def mean_mm_to_in(data_mm, axis_value):
174-
mean_data_mm = np.mean(data_mm, axis = axis_value)
174+
mean_data_mm = np.mean(data_mm, axis=axis_value)
175175
```
176176

177177

@@ -180,7 +180,7 @@ Next, add the code line to convert the mean array from millimeters to inches. In
180180

181181
```python
182182
def mean_mm_to_in(data_mm, axis_value):
183-
mean_data_mm = np.mean(data_mm, axis = axis_value)
183+
mean_data_mm = np.mean(data_mm, axis=axis_value)
184184
mean_data_in = mean_data_mm / 25.4
185185

186186
return mean_data_in
@@ -211,7 +211,7 @@ def mean_mm_to_in(data_mm, axis_value):
211211
numpy array
212212
Mean values of input array in inches.
213213
"""
214-
mean_data_mm = np.mean(data_mm, axis = axis_value)
214+
mean_data_mm = np.mean(data_mm, axis=axis_value)
215215
return mean_data_mm / 25.4
216216
```
217217

@@ -235,16 +235,16 @@ precip_2002_2013_mm = np.array([[27.178, 11.176, 38.1, 5.08, 81.28, 29.972,
235235

236236
```python
237237
# Calculate monthly mean (inches) for precip_2002_2013
238-
monthly_mean_in = mean_mm_to_in(data_mm = precip_2002_2013_mm,
239-
axis_value = 0)
238+
monthly_mean_in = mean_mm_to_in(data_mm=precip_2002_2013_mm,
239+
axis_value=0)
240240

241241
monthly_mean_in
242242
```
243243

244244
```python
245245
# Calculate yearly mean (inches) for precip_2002_2013
246-
yearly_mean_in = mean_mm_to_in(data_mm = precip_2002_2013_mm,
247-
axis_value = 1)
246+
yearly_mean_in = mean_mm_to_in(data_mm=precip_2002_2013_mm,
247+
axis_value=1)
248248

249249
yearly_mean_in
250250
```

0 commit comments

Comments
 (0)