def update_dataframe_to_be_none_instead_of_nan_for_api_responses(df): df = df.where((pd.notnull(df)), None) return df