17 Feb
2021
17 Feb
'21
9:15 p.m.
How is this not pythonic? series.apply(x -> x**2) Compared to.. series.apply(lambda x: x**2) (x, y) -> x+y, () -> 0, (x) -> x**2 (for single parameter, we can write it without parenthesis like the example above) are pythonic enough to my eyes. Abdulla
On 17 Feb 2021, at 10:59 PM, Joao S. O. Bueno
wrote: If someone comes with a "pythonic" way to lift restrictions on lambda, that could be something for debate, but so far this is just about uglifying it, and creating a new syntax matching exactly what exists today.