Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 
avatar of JustAnotherDataEnthusiast

JustAnotherDataEnthusiast

JustAnotherDataEnthusiast has asked 2 questions and find answers to 1 problems.

Stats

25
EtPoint
3
Vote count
2
questions
1
answers

About

df['ratio'] = df.apply(lambda x: medians[x['department']] if pd.isnull(x['ratio']) or x['ratio']==0 else x['ratio'], axis=1)