I much prefer writing actual functions in a real programming language to the verbose non-reusable non-composable relic that is SQL syntax.
Give me a better query language and I will gladly drop Pandas and Data.Table.
Give me a better query language and I will gladly drop Pandas and Data.Table.
More usefully, most databases allow you to write user-defined functions in other languages, including imperative SQL dialects.