Last active
October 13, 2019 12:26
-
-
Save MariaLavrovskaya/26fb6d2fe6b291da0ea9f8ff57fd17bf to your computer and use it in GitHub Desktop.
airbnb_6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #H0 - Number of days for Private room / Entire are the same | |
| #H1 - Number of days that guests stay in private room or in entire home/apt vary (are different) | |
| data.loc[:, ['room_type', 'minimum_nights']] | |
| private_room =data.loc[data['room_type'] == 'Private room'] | |
| private_room = private_room.loc[:,['minimum_nights']] | |
| entire = data.loc[data['room_type'] == 'Entire home/apt'] | |
| entire = entire.loc[:,['minimum_nights']] | |
| private_room.count() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment