We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f74416e commit bda5d05Copy full SHA for bda5d05
README.md
@@ -46,7 +46,12 @@ Allowing powerful and straightforward operations, like:
46
```python
47
# Compute the mean flux for each row of "object_nf"
48
import numpy as np
49
- object_nf.map_rows(np.mean, "nested_sources.flux", row_container="args")
+
50
+ def mean_flux(row):
51
+ """Calculates the mean flux for each object"""
52
+ return np.mean(row["nested_sources.flux"])
53
54
+ object_nf.map_rows(mean_flux, output_names="mean_flux")
55
```
56
57
<p align="center">
0 commit comments