Using lambda functions within notebooks is not inherently "bad," but there are some considerations to keep in mind. While this code is functional, chaining multiple lambda functions can reduce readability and debugging capabilities in Databricks notebooks. Error tracebacks become less informative.
If there is any performance implications, it is difficult to add logging and inspect intermediate results