Write flatten(record): pull user from the nested profile dict and cast amount to float, returning a flat {"user": ..., "amount": ...} row — the mission's stage 1 + 2 in one function.
Write flatten(record): pull user from the nested profile dict and cast amount to float, returning a flat {"user": ..., "amount": ...} row — the mission's stage 1 + 2 in one function.