I was wondering if there is a concise way to call a function on a condition.
I have this:
if list_1 != []:
some_dataframe_df = myfunction()
I'm wondering if it is possible to this in a ternary operator or something similiar.
If I do
(some_dataframe_df = myfunction()) if list_1 != [] else pass
It doesn't work.