You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: web/pandas/pdeps/0013-standardize-apply.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -163,7 +163,7 @@ Note also that `.pipe` operates on the `Series` while `apply`currently operates
163
163
164
164
This PDEP proposes that callables will be applies to the whole `Series`, so we in the future `Series.apply` will be as fast as `Series.pipe`.
165
165
166
-
### 4. ufuncs in `Series.apply` vs. noral functions
166
+
### 4. ufuncs in `Series.apply` vs. normal functions
167
167
168
168
Performance-wise, ufuncs are fine in `Series.apply`, but non-ufunc functions are not:
169
169
@@ -289,7 +289,7 @@ This PDEP proposes that the result from giving list-likes and dict-likes to `Ser
289
289
With the above in mind, it is proposed that:
290
290
291
291
1. When given a callable, `Series.apply` always operate on the series. I.e. let `series.apply(func)` be similar to `func(series)` + the needed additional functionality.
292
-
2. When given a list-like or dict-like, `Series.apply` will apply each element of the list-like/dict-like to the series. I.e. `series.apply(func_list)`wil be similar to `[series.apply(func) for func in func_list]` + the needed additional functionality
292
+
2. When given a list-like or dict-like, `Series.apply` will apply each element of the list-like/dict-like to the series. I.e. `series.apply(func_list)`will be similar to `[series.apply(func) for func in func_list]` + the needed additional functionality
293
293
3. The changes made to `Series.apply`will propagate to `Series.agg` and `Series.transform` as needed.
294
294
295
295
The difference between `Series.apply()` & `Series.map()` will then be that:
0 commit comments