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 d9dcd07 commit 7f8f236Copy full SHA for 7f8f236
docs/datasets/api.md
@@ -239,22 +239,7 @@ $dataset->apply($transformer);
239
$dataset->reverseApply($transformer);
240
```
241
242
-## Mapping and Filtering
243
-Map a callback function over the records of the dataset and return the result in a new dataset object:
244
-```php
245
-public map(callable $callback) : self
246
-```
247
-
248
249
-$addMeanColumn = function ($record) {
250
- $record[] = array_sum($record) / count($record);
251
252
- return $record;
253
-};
254
255
-$dataset = $dataset->map($addMeanColumn);
256
257
+## Filtering
258
Filter the records of the dataset using a callback function to determine if a row should be included in the return dataset:
259
```php
260
public filter(callable $callback) : self
0 commit comments