Skip to content

Commit 7f8f236

Browse files
committed
Remove mao() docs
1 parent d9dcd07 commit 7f8f236

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

docs/datasets/api.md

+1-16
Original file line numberDiff line numberDiff line change
@@ -239,22 +239,7 @@ $dataset->apply($transformer);
239239
$dataset->reverseApply($transformer);
240240
```
241241

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-
```php
249-
$addMeanColumn = function ($record) {
250-
$record[] = array_sum($record) / count($record);
251-
252-
return $record;
253-
};
254-
255-
$dataset = $dataset->map($addMeanColumn);
256-
```
257-
242+
## Filtering
258243
Filter the records of the dataset using a callback function to determine if a row should be included in the return dataset:
259244
```php
260245
public filter(callable $callback) : self

0 commit comments

Comments
 (0)