* **The way `'aggregate()'` and `'transform()'` find out whether a function accepts an element or the whole Series is by passing it a single value at first and if it raises an error, then they pass it the whole Series.**
* **The way `'aggregate()'` and `'transform()'` find out whether the passed function accepts an element or the whole Series is by passing it a single value at first and if it raises an error, then they pass it the whole Series.**
<li><strong>The way <codeclass="python hljs"><spanclass="hljs-string">'aggregate()'</span></code> and <codeclass="python hljs"><spanclass="hljs-string">'transform()'</span></code> find out whether a function accepts an element or the whole Series is by passing it a single value at first and if it raises an error, then they pass it the whole Series.</strong></li>
<li><strong>The way <codeclass="python hljs"><spanclass="hljs-string">'aggregate()'</span></code> and <codeclass="python hljs"><spanclass="hljs-string">'transform()'</span></code> find out whether the passed function accepts an element or the whole Series is by passing it a single value at first and if it raises an error, then they pass it the whole Series.</strong></li>