Generation

generate functionMon, 13 Feb 2023

Modify the formula below so that it rounds to the nearest integer, but not less than 1 and not more than 4: df2['respiratory_rate'] = df2['respiratory_rate'].fillna( df2.groupby('pulse')['respiratory_rate'].transform('median'))

def add(a, b): return a + b add(1, 2)

Questions about programming?Chat with your personal AI assistant