dic1 = dict(nonzero_df.groupby(pr_df[\'original_language\'])[\'budget\'].mean())
def func(budget=0, language=\'Nan\'): global dic1 if budget==0: return dic1[language]