For this Question: Display the acceptance rate of requests defined as the ratio of accepted contacts vs all contacts. Multiply the ratio by 100 to get the rate.DataFrame/SQL Table with the following schema -
<schema>[{'name': 'airbnb_contacts', 'columns': [{'name': 'id_guest', 'type': 'object'}, {'name': 'id_host', 'type': 'object'}, {'name': 'id_listing', 'type': 'object'}, {'name': 'ts_contact_at', 'type': 'datetime64[ns]'}, {'name': 'ts_reply_at', 'type': 'datetime64[ns]'}, {'name': 'ts_accepted_at', 'type': 'datetime64[ns]'}, {'name': 'ts_booking_at', 'type': 'datetime64[ns]'}, {'name': 'ds_checkin', 'type': 'datetime64[ns]'}, {'name': 'ds_checkout', 'type': 'datetime64[ns]'}, {'name': 'n_guests', 'type': 'int64'}, {'name': 'n_messages', 'type': 'int64'}]}]</schema>Each row in a new line and each value of a row separated by a |, i.e.,
0|1|2
1|2|3
2|3|4-, I have written this Solution Code: print(airbnb_contacts[airbnb_contacts['ts_accepted_at']=='NaT'].shape[0]/airbnb_contacts.shape[0]*100), In this Programming Language: Python, Now tell me if this Code is compilable or not?