This week’s tutorial will cover grouping and summarising data with Pandas and Plotly, and handling missing data with Pandas.

It is based on:

  • swcarpentry.github.io/python-novice-gapminder/08-data-frames.html
  • swcarpentry.github.io/python-novice-gapminder/09-plotting.html

Setup¶

  1. Make a new notebook for this week
  2. What’s the first thing to do? RENAME IT!
  3. Name it week5.ipynb

Load Data into Pandas¶

As we did last week, let’s load the Pandas and Plotly libraries, and load our AirBnB listings data into Pandas:

In [ ]:
import pandas as pd
import plotly.express as px
In [ ]:
listings_df = pd.read_csv('https://pynoon.github.io/data/inside_airbnb_listings_nz_2023_09.csv')
listings_df
Out[ ]:
id name host_name host_since latitude longitude room_type accommodates price price_nzd minimum_nights number_of_reviews last_review review_scores_rating region_name region_parent_name
0 l11909616 Rental unit in Opononi · ★4.73 · 1 bedroom · 2... Richard 2012-08-01 -35.513980 173.389550 Private room 3 $100.00 100.0 1 505 2023-08-25 4.73 Kaikohe-Hokianga Ward Far North District
1 l44538694 Farm stay in Miranda · ★4.93 · 3 bedrooms · 1 ... Judi 2020-08-03 -37.172970 175.288640 Entire home/apt 7 $190.00 190.0 1 61 2023-04-15 4.93 Plains Ward Hauraki District
2 l695685053729167791 Bungalow in Martinborough · 2 bedrooms · 2 bed... Bachcare 2017-08-09 -41.223400 175.449690 Entire home/apt 4 $314.00 314.0 2 2 2023-01-28 5.00 Martinborough Ward South Wairarapa District
3 l931591167956934516 Home in Minden · ★New · 4 bedrooms · 5 beds · ... Paul 2018-03-13 -37.700326 176.040560 Entire home/apt 10 $700.00 700.0 5 0 NaN NaN Kaimai Ward Western Bay of Plenty District
4 l669685796106302232 Home in Wānaka · ★4.69 · 5 bedrooms · 6 beds ·... Justine 2017-05-12 -44.682003 169.157802 Entire home/apt 10 $846.00 846.0 1 16 2023-08-21 4.69 Wanaka Ward Queenstown-Lakes District
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
9995 l703127457042300625 Guesthouse in Rotorua · ★5.0 · 2 bedrooms · 4 ... Tony 2022-08-27 -38.162510 176.236540 Entire home/apt 5 $205.00 205.0 2 25 2023-08-27 5.00 Area Outside Ward Rotorua District
9996 l21030599 Home in Tauranga · ★4.95 · 2 bedrooms · 3 beds... Dee 2017-09-21 -37.684060 176.236860 Private room 4 $65.00 65.0 1 64 2023-02-17 4.95 Mount Maunganui-Papamoa Ward Tauranga City
9997 l24721690 Rental unit in Wellington · 1 bedroom · 1 bed ... Bethany 2018-04-29 -41.301810 174.786020 Entire home/apt 2 $115.00 115.0 21 1 2018-09-04 5.00 Pukehīnau/Lambton Ward Wellington City
9998 l6787826 Guest suite in Tauranga · ★4.92 · Studio · 1 bath Adelle 2015-06-11 -37.638210 176.184620 Entire home/apt 2 $160.00 160.0 2 142 2023-07-15 4.92 Mount Maunganui-Papamoa Ward Tauranga City
9999 l41072501 Home in Auckland · ★3.83 · 1 bedroom · 1 bed ·... Harry 2019-12-26 -36.829150 174.616070 Private room 2 $95.00 95.0 1 6 2021-08-15 3.83 Waitākere Ward Auckland

10000 rows × 16 columns

We can see how big the DataFrame is using .shape:

In [ ]:
listings_df.shape
Out[ ]:
(10000, 16)

We can also see what columns we have available to work with:

In [ ]:
listings_df.columns
Out[ ]:
Index(['id', 'name', 'host_name', 'host_since', 'latitude', 'longitude',
       'room_type', 'accommodates', 'price', 'price_nzd', 'minimum_nights',
       'number_of_reviews', 'last_review', 'review_scores_rating',
       'region_name', 'region_parent_name'],
      dtype='object')

Grouping Data in Plotly¶

When analysing data, we often want to compare different groups.

One simple way is to colour data points by a categorical column when plotting. For example, colouring listings by their room type:

In [ ]:
px.scatter_geo(listings_df, lon='longitude', lat='latitude', color='room_type')

We can also specify a categorical column as a facet_row or facet_col to generate a separate graph for data points having each “facet” value.

In the plot below, note that we:

  • Sort the data by the accommodates, so that the facet plots are sorted by value.
  • Increase the height of the output to better view the large number of plots.
  • Set histnorm='percent' so that groups with few data points still have a “full size” plot.
In [ ]:
px.histogram(
    listings_df.sort_values(by='accommodates'),
    x='price_nzd',
    facet_row='accommodates',
    height=2000,
    histnorm='percent',
)

It can be useful to compute our own categorical columns, such as to compare one category against all others:

In [ ]:
listings_df['is_queenstown'] = listings_df['region_parent_name'] == 'Queenstown-Lakes District'
px.histogram(
    listings_df,
    x='price_nzd',
    facet_row='is_queenstown',
    histnorm='percent',
)

Grouping Data in Pandas¶

We can also use Pandas’ groupby() to split up a DataFrame according to a categorical attribute:

In [ ]:
for accommodates, accommodates_group_df in listings_df.groupby('accommodates'):
    print('Accommodates:', accommodates)
    display(accommodates_group_df)
Accommodates: 1
id name host_name host_since latitude longitude room_type accommodates price price_nzd minimum_nights number_of_reviews last_review review_scores_rating region_name region_parent_name is_queenstown
73 l52340679 Chalet in Coronet Peak · 1 bedroom · 1 bed · 2... Shania 2020-12-05 -44.949530 168.704770 Shared room 1 $30.00 30.0 1 0 NaN NaN Queenstown-Wakatipu Ward Queenstown-Lakes District True
113 l920385933154870003 Home in Papamoa · 1 bedroom · 1 bed · Half-bath Vimal 2022-09-01 -37.733968 176.311313 Private room 1 $71.00 71.0 1 0 NaN NaN Maketu-Te Puke Ward Western Bay of Plenty District False
128 l40161804 Condo in Auckland · ★5.0 · 1 bedroom · 1 bed ·... Rose 2016-12-15 -36.860440 174.783540 Private room 1 $65.00 65.0 1 13 2023-08-28 5.00 Ōrākei Ward Auckland False
212 l44063943 Home in Hamilton · ★4.86 · 1 bedroom · 1 bed ·... Fatima 2017-04-04 -37.753710 175.296100 Private room 1 $80.00 80.0 1 14 2023-03-02 4.86 East Ward Hamilton City False
292 l37968566 Bungalow in Auckland · ★5.0 · Studio · 1 bed ·... Josephine 2013-04-27 -37.005210 175.044450 Entire home/apt 1 $3,500.00 3500.0 1 4 2021-12-11 5.00 Franklin Ward Auckland False
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
9879 l11325254 Rental unit in Christchurch · ★4.40 · 1 bedroo... Ben 2015-09-16 -43.574740 172.634150 Entire home/apt 1 $80.00 80.0 90 5 2017-01-03 4.40 Cashmere Ward Christchurch City False
9885 l39757236 Rental unit in Auckland · Studio · 1 bed · 1 bath Roynesh 2019-10-30 -36.884160 174.858340 Private room 1 $100.00 100.0 5 0 NaN NaN Maungakiekie-Tāmaki Ward Auckland False
9910 l29519442 Home in Wellington · ★4.60 · 1 bedroom · 6 bed... Shaun 2018-03-12 -41.327260 174.763860 Shared room 1 $25.00 25.0 1 5 2023-07-15 4.60 Paekawakawa/Southern Ward Wellington City False
9942 l37897811 Home in Auckland · 1 bedroom · 1 bed · 1.5 sha... 梓 2019-08-19 -36.767100 174.713070 Private room 1 $50.00 50.0 100 0 NaN NaN Albany Ward Auckland False
9954 l39988559 Home in Auckland · ★5.0 · 1 bedroom · 1 bed · ... Simone 2019-11-01 -36.859280 174.863360 Private room 1 $57.00 57.0 3 11 2023-08-23 5.00 Ōrākei Ward Auckland False

261 rows × 17 columns

Accommodates: 2
id name host_name host_since latitude longitude room_type accommodates price price_nzd minimum_nights number_of_reviews last_review review_scores_rating region_name region_parent_name is_queenstown
15 l855900680665906267 Home in Silverdale · ★4.86 · 1 bedroom · 1 bed... Jolene 2023-03-26 -36.611303 174.671606 Private room 2 $96.00 96.0 1 21 2023-08-14 4.86 Albany Ward Auckland False
16 l576891065989785719 Rental unit in Auckland · ★4.60 · 1 bedroom · ... Stefan 2016-08-06 -36.844130 174.764190 Entire home/apt 2 $195.00 195.0 1 45 2023-08-28 4.60 Waitematā and Gulf Ward Auckland False
20 l13363295 Home in Oamaru · ★4.65 · 1 bedroom · 2 beds · ... Agra 2016-06-05 -45.103960 170.967340 Private room 2 $120.00 120.0 1 17 2023-04-08 4.65 Oamaru Ward Waitaki District False
22 l39820544 Guest suite in Whanganui · ★4.90 · 1 bedroom ·... Vicky 2019-10-06 -39.926470 175.047610 Entire home/apt 2 $130.00 130.0 1 99 2023-08-05 4.90 Area Outside Ward Whanganui District False
27 l32473976 Home in Auckland · 1 bedroom · 1 bed · 1 share... Ceci 2019-02-18 -36.893240 174.652410 Private room 2 $100.00 100.0 1 0 NaN NaN Waitākere Ward Auckland False
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
9983 l26477345 Guest suite in GREYTOWN · ★4.98 · Studio · 1 b... Philip 2018-07-01 -41.074060 175.419490 Entire home/apt 2 $292.00 292.0 1 45 2022-12-23 4.98 Greytown Ward South Wairarapa District False
9990 l40993333 Rental unit in Auckland · ★4.80 · 1 bedroom · ... Wayne 2017-04-28 -36.845700 174.763470 Private room 2 $30.00 30.0 1 17 2020-03-29 4.80 Waitematā and Gulf Ward Auckland False
9997 l24721690 Rental unit in Wellington · 1 bedroom · 1 bed ... Bethany 2018-04-29 -41.301810 174.786020 Entire home/apt 2 $115.00 115.0 21 1 2018-09-04 5.00 Pukehīnau/Lambton Ward Wellington City False
9998 l6787826 Guest suite in Tauranga · ★4.92 · Studio · 1 bath Adelle 2015-06-11 -37.638210 176.184620 Entire home/apt 2 $160.00 160.0 2 142 2023-07-15 4.92 Mount Maunganui-Papamoa Ward Tauranga City False
9999 l41072501 Home in Auckland · ★3.83 · 1 bedroom · 1 bed ·... Harry 2019-12-26 -36.829150 174.616070 Private room 2 $95.00 95.0 1 6 2021-08-15 3.83 Waitākere Ward Auckland False

3301 rows × 17 columns

Accommodates: 3
id name host_name host_since latitude longitude room_type accommodates price price_nzd minimum_nights number_of_reviews last_review review_scores_rating region_name region_parent_name is_queenstown
0 l11909616 Rental unit in Opononi · ★4.73 · 1 bedroom · 2... Richard 2012-08-01 -35.51398 173.38955 Private room 3 $100.00 100.0 1 505 2023-08-25 4.73 Kaikohe-Hokianga Ward Far North District False
19 l47405853 Hut in National Park · ★4.43 · 1 bedroom · 2 b... Miki 2015-08-31 -39.16449 175.48308 Private room 3 $65.00 65.0 2 14 2023-01-15 4.43 National Park Ward Ruapehu District False
38 l24026180 Guest suite in Christchurch · ★4.88 · 1 bedroo... Joanne 2010-10-02 -43.50683 172.56675 Entire home/apt 3 $96.00 96.0 2 82 2023-08-19 4.88 Waimairi Ward Christchurch City False
55 l32294803 Home in Porirua · ★4.90 · 1 bedroom · 2 beds ·... Justin 2017-01-30 -41.07233 174.85601 Private room 3 $45.00 45.0 1 20 2020-03-14 4.90 Northern Ward/Pukerua ki te Raki Porirua City False
99 l770699872440897157 Condo in Auckland · ★5.0 · 2 bedrooms · 2 beds... Anne 2012-02-20 -36.88339 174.81690 Entire home/apt 3 $167.00 167.0 2 14 2023-08-06 5.00 Ōrākei Ward Auckland False
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
9793 l20790479 Guest suite in Tauranga · ★4.89 · 1 bedroom · ... Markus 2015-12-30 -37.68294 176.12477 Entire home/apt 3 $97.00 97.0 2 169 2023-08-26 4.89 Otumoetai-Pyes Pa Ward Tauranga City False
9798 l20426481 Guesthouse in Auckland · ★4.98 · 1 bedroom · 2... Ganesh 2016-11-03 -36.87372 174.84829 Entire home/apt 3 $65.00 65.0 7 59 2023-01-22 4.98 Maungakiekie-Tāmaki Ward Auckland False
9810 l676300372392918059 Guesthouse in Masterton · ★5.0 · 1 bedroom · 2... Andrew And Emma 2019-06-14 -40.98074 175.72147 Entire home/apt 3 $120.00 120.0 2 26 2023-07-22 5.00 Area Outside Ward Masterton District False
9951 l606639688127595126 Guest suite in Cardrona · ★4.41 · 1 bedroom · ... Paul 2014-07-29 -44.88238 169.00287 Entire home/apt 3 $150.00 150.0 1 32 2023-08-31 4.41 Wanaka Ward Queenstown-Lakes District True
9992 l49571900 Guesthouse in Whitianga · 1 bedroom · 1 bed · ... Jill 2019-07-14 -36.82481 175.70270 Entire home/apt 3 $232.00 232.0 4 0 NaN NaN Mercury Bay Ward Thames-Coromandel District False

548 rows × 17 columns

Accommodates: 4
id name host_name host_since latitude longitude room_type accommodates price price_nzd minimum_nights number_of_reviews last_review review_scores_rating region_name region_parent_name is_queenstown
2 l695685053729167791 Bungalow in Martinborough · 2 bedrooms · 2 bed... Bachcare 2017-08-09 -41.22340 175.44969 Entire home/apt 4 $314.00 314.0 2 2 2023-01-28 5.00 Martinborough Ward South Wairarapa District False
12 l31990975 Home in Kaikoura · ★4.55 · 2 bedrooms · 2 beds... Kaikoura Holiday Homes 2015-11-05 -42.41678 173.70586 Entire home/apt 4 $181.00 181.0 2 47 2023-07-10 4.55 Area Outside Ward Kaikoura District False
17 l740080457921639925 Home in Dunedin · ★5.0 · 2 bedrooms · 2 beds ·... Christy 2020-06-15 -45.91577 170.47944 Entire home/apt 4 $450.00 450.0 3 6 2023-08-06 5.00 Area Outside Ward Dunedin City False
26 l46297846 Home in Wanaka · 3 bedrooms · 3 beds · 2 baths Frances 2018-12-27 -44.67764 169.16352 Entire home/apt 4 $300.00 300.0 3 1 2021-01-02 5.00 Wanaka Ward Queenstown-Lakes District True
28 l832660621033019861 Rental unit in Wellington · 2 bedrooms · 3 bed... Jason 2022-09-29 -41.29504 174.77880 Entire home/apt 4 $380.00 380.0 2 1 2023-06-05 5.00 Pukehīnau/Lambton Ward Wellington City False
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
9980 l15536560 Guesthouse in Mount Hutt · ★4.96 · 2 bedrooms ... Robert 2015-01-06 -43.47799 171.58997 Entire home/apt 4 $620.00 620.0 2 73 2023-08-23 4.96 Western Ward Ashburton District False
9984 l19101552 Rental unit in Queenstown · ★4.93 · 2 bedrooms... Nicola 2015-09-10 -45.02721 168.69088 Entire home/apt 4 $400.00 400.0 2 136 2023-08-18 4.93 Queenstown-Wakatipu Ward Queenstown-Lakes District True
9987 l31102291 Rental unit in Tauranga · ★4.94 · 2 bedrooms ·... Jeremy 2011-08-12 -37.63323 176.17604 Entire home/apt 4 $290.00 290.0 2 16 2021-01-31 4.94 Mount Maunganui-Papamoa Ward Tauranga City False
9991 l932823169085328966 Cabin in Mārahau · ★New · 2 bedrooms · 2 beds ... Melanie 2019-01-04 -40.99185 172.99595 Entire home/apt 4 $300.00 300.0 2 0 NaN NaN Motueka Ward Tasman District False
9996 l21030599 Home in Tauranga · ★4.95 · 2 bedrooms · 3 beds... Dee 2017-09-21 -37.68406 176.23686 Private room 4 $65.00 65.0 1 64 2023-02-17 4.95 Mount Maunganui-Papamoa Ward Tauranga City False

1798 rows × 17 columns

Accommodates: 5
id name host_name host_since latitude longitude room_type accommodates price price_nzd minimum_nights number_of_reviews last_review review_scores_rating region_name region_parent_name is_queenstown
5 l47705689 Hotel in Katikati · ★5.0 · 2 bedrooms · 3 beds... Erin 2019-05-10 -37.557210 175.917070 Private room 5 $270.00 270.0 1 4 2022-05-29 5.00 Katikati-Waihi Beach Ward Western Bay of Plenty District False
6 l775665954568030098 Home in Whangaparāoa · 3 bedrooms · 3 beds · 1... Sasha 2022-12-06 -36.645100 174.738150 Entire home/apt 5 $250.00 250.0 1 1 2023-05-07 5.00 Albany Ward Auckland False
9 l31540227 Home in Haumoana · ★4.90 · 3 bedrooms · 3 beds... Rebecca 2020-05-17 -39.642160 176.941600 Entire home/apt 5 $400.00 400.0 2 91 2023-08-05 4.90 Kahuranaki Ward Hastings District False
18 l5905042 Home in Blenheim · ★4.96 · 2 bedrooms · 3 beds... Rose 2014-01-29 -41.533340 173.911090 Entire home/apt 5 $350.00 350.0 2 27 2023-02-05 4.96 Wairau-Awatere Ward Marlborough District False
39 l43178606 Serviced apartment in Christchurch · ★4.88 · 3... Emma & Fidel 2016-08-19 -43.519460 172.639470 Entire home/apt 5 $367.00 367.0 1 26 2023-04-15 4.88 Central Ward Christchurch City False
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
9935 l10227242 Guest suite in Auckland · ★4.79 · 3 bedrooms ·... Celia 2015-12-28 -36.858140 174.821680 Entire home/apt 5 $298.00 298.0 14 41 2023-08-12 4.79 Ōrākei Ward Auckland False
9961 l21725911 Farm stay in Kaitake · ★4.53 · 2 bedrooms · 3 ... Louise 2015-06-01 -39.127010 173.930680 Entire home/apt 5 $117.00 117.0 4 55 2022-11-13 4.53 South-West Ward New Plymouth District False
9969 l841491085771379948 Home in Tauranga · 3 bedrooms · 3 beds · 2 baths Marilyn 2014-04-26 -37.663840 176.141450 Entire home/apt 5 $230.00 230.0 4 1 2023-07-20 5.00 Otumoetai-Pyes Pa Ward Tauranga City False
9970 l745205975051712880 Home in Queenstown · 2 bedrooms · 2 beds · 1.5... Auria 2021-02-24 -44.999876 168.797613 Entire home/apt 5 $285.00 285.0 5 2 2023-02-03 5.00 Queenstown-Wakatipu Ward Queenstown-Lakes District True
9995 l703127457042300625 Guesthouse in Rotorua · ★5.0 · 2 bedrooms · 4 ... Tony 2022-08-27 -38.162510 176.236540 Entire home/apt 5 $205.00 205.0 2 25 2023-08-27 5.00 Area Outside Ward Rotorua District False

569 rows × 17 columns

Accommodates: 6
id name host_name host_since latitude longitude room_type accommodates price price_nzd minimum_nights number_of_reviews last_review review_scores_rating region_name region_parent_name is_queenstown
7 l50118792 Cottage in Kinloch · ★4.86 · 3 bedrooms · 3 be... Carmen 2020-02-13 -38.662930 175.918800 Entire home/apt 6 $400.00 400.0 2 22 2023-08-12 4.86 Turangi-Tongariro Ward Taupo District False
13 l883078974919276291 Home in Papamoa · 3 bedrooms · 3 beds · 2 baths Sarah 2018-01-21 -37.730367 176.344236 Entire home/apt 6 $350.00 350.0 1 0 NaN NaN Mount Maunganui-Papamoa Ward Tauranga City False
21 l49452902 Home in Christchurch · ★4.76 · 3 bedrooms · 3 ... Leanne 2018-01-06 -43.459560 172.588250 Entire home/apt 6 $240.00 240.0 2 17 2023-04-30 4.76 Harewood Ward Christchurch City False
23 l869825936832818493 Home in Greytown · ★5.0 · 3 bedrooms · 3 beds ... Kate 2018-10-13 -41.082402 175.453758 Entire home/apt 6 $550.00 550.0 2 3 2023-07-29 5.00 Greytown Ward South Wairarapa District False
24 l937737502740904874 Home in Picton · ★New · 3 bedrooms · 4 beds · ... Bachcare 2017-08-09 -41.292540 174.009649 Entire home/apt 6 $307.00 307.0 2 0 NaN NaN Marlborough Sounds Ward Marlborough District False
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
9973 l32639990 Cottage in Rapaura · ★4.86 · 2 bedrooms · 2 be... Charlie 2018-04-23 -41.454740 173.884280 Entire home/apt 6 $210.00 210.0 2 104 2023-05-13 4.86 Wairau-Awatere Ward Marlborough District False
9978 l967060021628447619 Home in Matarangi · ★New · 3 bedrooms · 3 beds... Liz 2017-12-30 -36.733004 175.650887 Entire home/apt 6 $400.00 400.0 2 0 NaN NaN Mercury Bay Ward Thames-Coromandel District False
9982 l16406995 Home in Otago · 5 bedrooms · 5 beds · 2 baths Sarah 2016-12-16 -44.681450 169.147550 Entire home/apt 6 $500.00 500.0 6 2 2019-01-03 5.00 Wanaka Ward Queenstown-Lakes District True
9985 l48383761 Home in Russell · ★5.0 · 3 bedrooms · 6 beds ·... Richard 2021-02-28 -35.267010 174.122440 Entire home/apt 6 $500.00 500.0 2 4 2021-09-26 5.00 Bay of Islands-Whangaroa Ward Far North District False
9993 l45743542 Home in Twizel · ★4.95 · 3 bedrooms · 4 beds ·... Zelda 2019-09-28 -44.250430 170.088480 Entire home/apt 6 $155.00 155.0 1 264 2023-08-31 4.95 Pukaki Ward Mackenzie District False

1571 rows × 17 columns

Accommodates: 7
id name host_name host_since latitude longitude room_type accommodates price price_nzd minimum_nights number_of_reviews last_review review_scores_rating region_name region_parent_name is_queenstown
1 l44538694 Farm stay in Miranda · ★4.93 · 3 bedrooms · 1 ... Judi 2020-08-03 -37.17297 175.28864 Entire home/apt 7 $190.00 190.0 1 61 2023-04-15 4.93 Plains Ward Hauraki District False
10 l719830413519809409 Home in Red Beach · ★5.0 · 4 bedrooms · 5 beds... Petronella 2018-05-05 -36.60176 174.68673 Entire home/apt 7 $450.00 450.0 4 6 2023-07-03 5.00 Albany Ward Auckland False
51 l13436324 Home in Tuateawa · ★5.0 · 3 bedrooms · 4 beds ... Coromandel Accommodation 2014-01-08 -36.63174 175.57559 Entire home/apt 7 $292.00 292.0 2 25 2023-09-03 5.00 Coromandel-Colville Ward Thames-Coromandel District False
102 l48643683 Home in Blenheim · ★4.77 · 3 bedrooms · 4 beds... Sarah 2018-07-24 -41.51577 173.93187 Entire home/apt 7 $290.00 290.0 2 44 2023-07-06 4.77 Wairau-Awatere Ward Marlborough District False
109 l567458636745522391 Home in Jacks Point · ★5.0 · 4 bedrooms · 5 be... Katrina 2018-02-07 -45.07847 168.74686 Entire home/apt 7 $684.00 684.0 7 7 2023-03-23 5.00 Queenstown-Wakatipu Ward Queenstown-Lakes District True
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
9772 l32678523 Home in Ocean View · ★4.91 · 3 bedrooms · 5 be... Michael 2018-03-15 -45.93780 170.34086 Entire home/apt 7 $225.00 225.0 2 11 2023-08-05 4.91 Area Outside Ward Dunedin City False
9826 l30502760 Home in Twizel · ★4.89 · 3 bedrooms · 4 beds ·... Ally 2017-09-01 -44.25281 170.09221 Entire home/apt 7 $210.00 210.0 3 10 2022-02-26 4.89 Pukaki Ward Mackenzie District False
9884 l838472978995788101 Home in 4373 · 4 bedrooms · 6 beds · 2 baths Bachcare 2017-08-09 -39.05967 174.19561 Entire home/apt 7 $386.00 386.0 2 1 2023-03-26 5.00 New Plymouth City Ward New Plymouth District False
9894 l21044525 Home in Christchurch · ★4.93 · 4 bedrooms · 4 ... Tony 2017-09-21 -43.52497 172.60022 Entire home/apt 7 $317.00 317.0 2 261 2023-08-27 4.93 Fendalton Ward Christchurch City False
9966 l42842247 Home in Christchurch · 3 bedrooms · 5 beds · 1... Joy 2016-03-21 -43.53207 172.53957 Entire home/apt 7 $138.00 138.0 1 2 2020-04-19 5.00 Hornby Ward Christchurch City False

377 rows × 17 columns

Accommodates: 8
id name host_name host_since latitude longitude room_type accommodates price price_nzd minimum_nights number_of_reviews last_review review_scores_rating region_name region_parent_name is_queenstown
8 l36576886 Home in Hanmer Springs · ★4.74 · 3 bedrooms · ... Pauline 2019-07-10 -42.51502 172.83307 Entire home/apt 8 $206.00 206.0 2 58 2023-08-12 4.74 West Ward Hurunui District False
14 l38732716 Rental unit in Russell · ★5.0 · 4 bedrooms · 6... Olivia 2016-06-10 -35.26339 174.12694 Entire home/apt 8 $365.00 365.0 2 38 2023-07-31 5.00 Bay of Islands-Whangaroa Ward Far North District False
25 l39263124 Home in Wanaka · ★5.0 · 4 bedrooms · 5 beds · ... Emily 2015-11-12 -44.67658 169.15760 Entire home/apt 8 $600.00 600.0 7 13 2023-08-03 5.00 Wanaka Ward Queenstown-Lakes District True
33 l692864690971301097 Home in Twizel · ★4.94 · 3 bedrooms · 3 beds ·... Amy 2016-03-03 -44.25989 170.09300 Entire home/apt 8 $153.00 153.0 2 17 2023-08-11 4.94 Pukaki Ward Mackenzie District False
34 l30940411 Home in Paihia · ★4.76 · 4 bedrooms · 5 beds ·... Bachcare 2017-08-09 -35.28336 174.09378 Entire home/apt 8 $410.00 410.0 2 30 2023-07-08 4.76 Bay of Islands-Whangaroa Ward Far North District False
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
9976 l45471838 Rental unit in Queenstown · ★4.58 · 3 bedrooms... Ged 2015-12-03 -45.03148 168.66587 Entire home/apt 8 $528.00 528.0 2 50 2023-08-29 4.58 Queenstown-Wakatipu Ward Queenstown-Lakes District True
9986 l25812855 Farm stay in Owaka · ★4.92 · 4 bedrooms · 5 be... Tracey 2016-04-14 -46.47697 169.59878 Entire home/apt 8 $200.00 200.0 2 108 2023-07-13 4.92 Catlins Ward Clutha District False
9988 l658780134708300897 Bungalow in Ohakune · 3 bedrooms · 4 beds · 2 ... Bachcare 2017-08-09 -39.42090 175.40506 Entire home/apt 8 $359.00 359.0 2 0 NaN NaN Waimarino-Waiouru Ward Ruapehu District False
9989 l45105873 Rental unit in Queenstown · ★4.83 · 4 bedrooms... Lucy & Luke 2011-08-05 -45.03292 168.68219 Entire home/apt 8 $887.00 887.0 3 41 2023-08-20 4.83 Queenstown-Wakatipu Ward Queenstown-Lakes District True
9994 l819238634318785924 Home in Auckland · ★4.95 · 4 bedrooms · 4 beds... Kelly 2023-02-04 -36.92428 174.91491 Entire home/apt 8 $271.00 271.0 1 22 2023-08-26 4.95 Howick Ward Auckland False

811 rows × 17 columns

Accommodates: 9
id name host_name host_since latitude longitude room_type accommodates price price_nzd minimum_nights number_of_reviews last_review review_scores_rating region_name region_parent_name is_queenstown
104 l738723503630296571 Home in Whakataki · ★5.0 · 3 bedrooms · 9 beds... Talesha 2011-09-24 -40.869520 176.226630 Entire home/apt 9 $180.00 180.0 2 5 2023-08-15 5.00 Area Outside Ward Masterton District False
156 l32476352 Home in Greytown · ★4.91 · 4 bedrooms · 6 beds... Kathy 2017-08-19 -41.074516 175.467911 Entire home/apt 9 $223.00 223.0 1 33 2023-07-03 4.91 Greytown Ward South Wairarapa District False
158 l37537374 Boutique hotel in Thames · ★4.91 · 3 bedrooms ... Chris 2015-04-21 -37.110500 175.517640 Private room 9 $200.00 200.0 1 23 2023-07-29 4.91 Thames Ward Thames-Coromandel District False
192 l21874215 Home in Two Mile Bay · ★4.67 · 3 bedrooms · 5 ... Bachcare 2017-08-09 -38.718520 176.077300 Entire home/apt 9 $236.00 236.0 2 3 2023-06-04 4.67 Taupō Ward Taupo District False
284 l21901832 Home in Papamoa · ★5.0 · 5 bedrooms · 5 beds ·... Mollie 2017-11-23 -37.705470 176.303590 Entire home/apt 9 $600.00 600.0 3 5 2023-01-15 5.00 Mount Maunganui-Papamoa Ward Tauranga City False
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
9861 l49229387 Home in Ruakākā · ★4.33 · 3 bedrooms · 5 beds ... Bachcare 2017-08-09 -35.907320 174.458350 Entire home/apt 9 $207.00 207.0 2 3 2023-02-05 4.33 Bream Bay Ward Whangarei District False
9898 l36247850 Rental unit in Auckland · ★4.82 · 3 bedrooms ·... Gabriela 2016-10-02 -36.855600 174.763100 Entire home/apt 9 $390.00 390.0 1 11 2020-03-08 4.82 Waitematā and Gulf Ward Auckland False
9908 l46944872 Home in Whitianga · ★4.56 · 3 bedrooms · 6 bed... Coromandel 2020-12-09 -36.824100 175.693070 Entire home/apt 9 $766.00 766.0 1 25 2023-03-07 4.56 Mercury Bay Ward Thames-Coromandel District False
9943 l17287310 Island in French Pass · ★4.41 · 3 bedrooms · 6... Dee 2017-02-15 -40.869600 173.874620 Entire home/apt 9 $250.00 250.0 1 18 2023-06-11 4.41 Marlborough Sounds Ward Marlborough District False
9972 l15793182 Home in Tauranga · ★4.95 · 4 bedrooms · 7 beds... Phoebe 2016-09-26 -37.657460 176.211000 Entire home/apt 9 $700.00 700.0 3 20 2023-04-17 4.95 Mount Maunganui-Papamoa Ward Tauranga City False

157 rows × 17 columns

Accommodates: 10
id name host_name host_since latitude longitude room_type accommodates price price_nzd minimum_nights number_of_reviews last_review review_scores_rating region_name region_parent_name is_queenstown
3 l931591167956934516 Home in Minden · ★New · 4 bedrooms · 5 beds · ... Paul 2018-03-13 -37.700326 176.040560 Entire home/apt 10 $700.00 700.0 5 0 NaN NaN Kaimai Ward Western Bay of Plenty District False
4 l669685796106302232 Home in Wānaka · ★4.69 · 5 bedrooms · 6 beds ·... Justine 2017-05-12 -44.682003 169.157802 Entire home/apt 10 $846.00 846.0 1 16 2023-08-21 4.69 Wanaka Ward Queenstown-Lakes District True
11 l38702350 Villa in Queenstown · ★5.0 · 5 bedrooms · 6 be... Bridget 2016-04-05 -45.024260 168.689590 Entire home/apt 10 $1,613.00 1613.0 3 26 2023-08-20 5.00 Queenstown-Wakatipu Ward Queenstown-Lakes District True
96 l21475630 Cabin in Coromandel Forest Park · ★4.57 · 3 be... Wendy 2017-10-20 -37.123880 175.627080 Entire home/apt 10 $84.00 84.0 2 23 2023-01-12 4.57 Thames Ward Thames-Coromandel District False
115 l689440548985660290 Home in Queenstown · ★5.0 · 4 bedrooms · 5 bed... Michelle 2018-01-03 -45.019490 168.708720 Entire home/apt 10 $1,200.00 1200.0 5 5 2023-01-04 5.00 Queenstown-Wakatipu Ward Queenstown-Lakes District True
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
9838 l26753340 Home in Dunedin · 4 bedrooms · 4 beds · 4 baths Leonard 2017-02-03 -45.844610 170.487510 Entire home/apt 10 $1,249.00 1249.0 1 2 2020-02-04 4.50 Area Outside Ward Dunedin City False
9883 l25677403 Home in Whitianga · ★4.78 · 4 bedrooms · 5 bed... Rob 2016-05-26 -36.794070 175.696500 Entire home/apt 10 $200.00 200.0 2 69 2023-01-14 4.78 Mercury Bay Ward Thames-Coromandel District False
9888 l23648820 Cottage in Riversdale · ★4.69 · 4 bedrooms · 8... Katrina 2011-12-22 -41.089570 176.071730 Entire home/apt 10 $270.00 270.0 1 70 2023-04-29 4.69 Area Outside Ward Masterton District False
9950 l44212054 Villa in Ben Lomond · ★5.0 · 5 bedrooms · 5 be... Julian 2019-04-28 -45.051600 168.594870 Entire home/apt 10 $3,000.00 3000.0 1 4 2023-06-28 5.00 Queenstown-Wakatipu Ward Queenstown-Lakes District True
9965 l40780443 Home in National Park · ★4.71 · 5 bedrooms · 7... Steve 2018-05-07 -39.172790 175.395550 Entire home/apt 10 $571.00 571.0 1 77 2023-06-24 4.71 National Park Ward Ruapehu District False

301 rows × 17 columns

Accommodates: 11
id name host_name host_since latitude longitude room_type accommodates price price_nzd minimum_nights number_of_reviews last_review review_scores_rating region_name region_parent_name is_queenstown
637 l39990821 Home in Kaikoura · ★4.90 · 4 bedrooms · 7 beds... Eric 2017-05-18 -42.409620 173.642690 Entire home/apt 11 $268.00 268.0 1 243 2023-09-02 4.90 Area Outside Ward Kaikoura District False
955 l23060411 Home in Lake Tekapo · ★4.84 · 4 bedrooms · 8 b... Discover Tekapo Accommodation 2016-11-07 -44.005283 170.470764 Entire home/apt 11 $441.00 441.0 2 97 2023-09-02 4.84 Pukaki Ward Mackenzie District False
1183 l20178391 Home in Lake Hayes Estate · ★4.80 · 5 bedrooms... Karyn 2016-09-15 -44.999510 168.795610 Entire home/apt 11 $850.00 850.0 5 5 2019-01-02 4.80 Queenstown-Wakatipu Ward Queenstown-Lakes District True
1224 l851707902075482385 Home in St. Arnaud · 4 bedrooms · 5 beds · 2.5... Richard 2020-01-13 -41.788149 172.884824 Entire home/apt 11 $250.00 250.0 2 2 2023-07-20 4.00 Lakes-Murchison Ward Tasman District False
1504 l53202055 Home in Waimārama · ★5.0 · 5 bedrooms · 8 beds... Quentin 2016-07-20 -39.824642 176.996475 Entire home/apt 11 $450.00 450.0 3 5 2022-02-06 5.00 Kahuranaki Ward Hastings District False
1642 l601836113808502967 Home in Queenstown · ★5.0 · 5 bedrooms · 8 bed... David 2018-07-24 -45.046340 168.630660 Entire home/apt 11 $850.00 850.0 3 10 2023-08-26 5.00 Queenstown-Wakatipu Ward Queenstown-Lakes District True
1847 l51309703 Villa in Wanaka · 5 bedrooms · 9 beds · 5.5 baths Taeko 2021-07-27 -44.699580 169.192900 Entire home/apt 11 $1,500.00 1500.0 3 1 2022-12-31 5.00 Wanaka Ward Queenstown-Lakes District True
1925 l763419460099400471 Home in Hinakura · 3 bedrooms · 8 beds · 2 baths Dena 2018-10-17 -41.298124 175.656084 Entire home/apt 11 $150.00 150.0 2 1 2023-07-14 5.00 Martinborough Ward South Wairarapa District False
2455 l8705089 Home in Twizel · ★4.69 · 4 bedrooms · 11 beds ... Linda 2015-10-04 -44.249820 170.091220 Entire home/apt 11 $214.00 214.0 1 258 2023-08-26 4.69 Pukaki Ward Mackenzie District False
2599 l40140012 Home in Rotorua · ★4.77 · 4 bedrooms · 6 beds ... Amy 2019-06-24 -38.165990 176.231610 Entire home/apt 11 $252.00 252.0 1 117 2023-08-23 4.77 Area Outside Ward Rotorua District False
2634 l46898963 Home in Wanaka · ★4.75 · 5 bedrooms · 7 beds ·... Bachcare 2017-08-09 -44.674220 169.131260 Entire home/apt 11 $351.00 351.0 3 4 2023-07-13 4.75 Wanaka Ward Queenstown-Lakes District True
2783 l49930538 Holiday park in Motueka · 3 bedrooms · 2 baths Ashlee 2019-09-30 -41.104180 173.014500 Private room 11 $449.00 449.0 2 2 2022-10-23 4.50 Motueka Ward Tasman District False
2869 l42021220 Home in Burgess Park · ★4.58 · 5 bedrooms · 4 ... Joanne 2015-06-13 -39.105730 174.114890 Entire home/apt 11 $193.00 193.0 1 12 2023-06-05 4.58 South-West Ward New Plymouth District False
2900 l755353816358921175 Home in Tūrangi · ★4.90 · 5 bedrooms · 7 beds ... Rachele 2016-07-08 -38.990613 175.815457 Entire home/apt 11 $329.00 329.0 2 10 2023-07-29 4.90 Turangi-Tongariro Ward Taupo District False
2922 l17944483 Hotel in Southbridge · ★4.29 · 6 bedrooms · 9 ... Harry 2017-02-22 -43.810970 172.251020 Private room 11 $50.00 50.0 1 7 2023-03-30 4.29 Ellesmere Ward Selwyn District False
3513 l865415170430747788 Home in Dunedin · 5 bedrooms · 6 beds · 1 bath Mel 2020-07-27 -45.902590 170.438020 Entire home/apt 11 $290.00 290.0 2 0 NaN NaN Area Outside Ward Dunedin City False
3584 l37914976 Home in Kurow · ★4.91 · 6 bedrooms · 9 beds · ... Claire 2019-06-07 -44.735210 170.470540 Entire home/apt 11 $120.00 120.0 1 64 2023-08-19 4.91 Ahuriri Ward Waitaki District False
4095 l22863901 Home in Carterton · ★4.83 · 5 bedrooms · 6 bed... Jack + Lou 2018-01-21 -41.032880 175.515740 Entire home/apt 11 $525.00 525.0 2 7 2021-01-30 4.83 Area Outside Ward Carterton District False
4123 l23147614 Home in Pukehina · ★4.56 · 4 bedrooms · 8 beds... Beach 2017-09-26 -37.766670 176.490520 Entire home/apt 11 $450.00 450.0 2 16 2023-02-25 4.56 Maketu-Te Puke Ward Western Bay of Plenty District False
4962 l47703683 Home in Kaiteriteri · ★4.50 · 4 bedrooms · 7 b... Bachcare 2017-08-09 -41.047940 173.016850 Entire home/apt 11 $309.00 309.0 2 4 2023-02-11 4.50 Motueka Ward Tasman District False
5132 l540853244886925946 Farm stay in Gimmerburn · ★4.88 · 4 bedrooms ·... Angela 2021-06-08 -45.188630 169.999100 Entire home/apt 11 $260.00 260.0 2 8 2023-05-21 4.88 Maniototo Ward Central Otago District False
5287 l44713571 Townhouse in Dunedin · ★4.64 · 4 bedrooms · 7 ... Mel 2020-07-27 -45.898150 170.518180 Entire home/apt 11 $220.00 220.0 1 67 2023-09-02 4.64 Area Outside Ward Dunedin City False
5322 l26402103 Home in Turangi · ★4.85 · 3 bedrooms · 6 beds ... Jennifer 2015-03-05 -38.989570 175.799700 Entire home/apt 11 $144.00 144.0 2 59 2023-07-13 4.85 Turangi-Tongariro Ward Taupo District False
5485 l775440139510417546 Home in Motueka · 4 bedrooms · 6 beds · 2 baths Jay 2015-08-29 -41.131163 173.009469 Entire home/apt 11 $295.00 295.0 2 2 2023-01-08 5.00 Motueka Ward Tasman District False
5628 l25547308 Home in Papamoa · 4 bedrooms · 8 beds · 2 baths Rebecca 2014-07-29 -37.726348 176.334599 Entire home/apt 11 $589.00 589.0 5 1 2023-01-30 5.00 Mount Maunganui-Papamoa Ward Tauranga City False
5736 l21740135 Home in Te Mata · ★New · 4 bedrooms · 10 beds ... Alana 2017-11-11 -36.966961 175.497370 Entire home/apt 11 $150.00 150.0 3 1 2023-07-15 5.00 Thames Ward Thames-Coromandel District False
5832 l26528427 Villa in Rotorua · ★4.73 · 4 bedrooms · 7 beds... Tian 2017-05-18 -38.168500 176.238200 Entire home/apt 11 $355.00 355.0 1 264 2023-08-17 4.73 Area Outside Ward Rotorua District False
5862 l35841552 Home in Waihi Beach · ★4.50 · 5 bedrooms · 6 b... Bachcare 2017-08-09 -37.395190 175.936120 Entire home/apt 11 $413.00 413.0 2 6 2022-05-28 4.50 Katikati-Waihi Beach Ward Western Bay of Plenty District False
5984 l31837671 Home in Otorohanga · ★4.93 · 5 bedrooms · 8 be... Sally 2018-03-05 -38.204710 175.199960 Entire home/apt 11 $281.00 281.0 2 56 2023-08-09 4.93 Kawhia-Tihiroa Ward Ōtorohanga District False
6095 l46698218 Vacation home in Rotoiti Forest · ★New · 5 bed... Wendy 2018-09-03 -38.053891 176.451353 Entire home/apt 11 $340.00 340.0 2 0 NaN NaN Area Outside Ward Rotorua District False
6194 l629880982839158589 Vacation home in Matarangi · ★4.88 · 4 bedroom... Debra 2021-04-08 -36.731621 175.643906 Entire home/apt 11 $315.00 315.0 2 8 2023-01-26 4.88 Mercury Bay Ward Thames-Coromandel District False
6656 l53799301 Home in Kaikōura · 5 bedrooms · 7 beds · 2 baths Bachcare 2017-08-09 -42.465510 173.538000 Entire home/apt 11 $426.00 426.0 2 0 NaN NaN Area Outside Ward Kaikoura District False
6793 l37028283 Home in Napier · ★4.91 · 5 bedrooms · 7 beds ·... Annette 2016-07-22 -39.501140 176.893220 Entire home/apt 11 $1,200.00 1200.0 2 23 2023-05-27 4.91 Onekawa-Tamatea Ward Napier City False
7099 l614140533048956115 Home in Pataua South · ★5.0 · 4 bedrooms · 7 b... Sarah 2017-10-26 -35.716630 174.522150 Entire home/apt 11 $414.00 414.0 1 10 2023-05-13 5.00 Whangarei Heads Ward Whangarei District False
7360 l40331929 Home in Ohauiti · ★4.83 · 4 bedrooms · 6 beds ... David 2019-10-13 -37.753880 176.156760 Entire home/apt 11 $441.00 441.0 1 100 2023-08-17 4.83 Te Papa-Welcome Bay Ward Tauranga City False
7441 l593743510545800536 Home in Waihi Beach · ★4.40 · 5 bedrooms · 6 b... Bachcare 2017-08-09 -37.416290 175.944490 Entire home/apt 11 $274.00 274.0 2 15 2022-09-24 4.40 Katikati-Waihi Beach Ward Western Bay of Plenty District False
7910 l42333234 Farm stay in Ngahinapouri · ★4.50 · 4 bedrooms... Steve 2019-09-18 -37.840160 175.196860 Entire home/apt 11 $900.00 900.0 1 8 2022-04-18 4.50 Pirongia Ward Waipa District False
8100 l15806675 Home in Havelock North · ★4.92 · 5 bedrooms · ... Grace 2016-11-02 -39.689580 176.879660 Entire home/apt 11 $900.00 900.0 3 14 2023-01-08 4.92 Kahuranaki Ward Hastings District False
8244 l50422946 Home in Papamoa · ★4.67 · 4 bedrooms · 7 beds ... Jessica 2019-09-23 -37.710780 176.299600 Entire home/apt 11 $233.00 233.0 2 90 2023-08-19 4.67 Mount Maunganui-Papamoa Ward Tauranga City False
8283 l4477871 Home in Marahau · ★4.63 · 4 bedrooms · 11 beds... David 2014-10-07 -41.009450 173.006590 Entire home/apt 11 $375.00 375.0 3 79 2023-02-20 4.63 Motueka Ward Tasman District False
8697 l16707611 Home in Ongarue · ★4.88 · 5 bedrooms · 6 beds ... Martyn 2017-01-09 -38.715370 175.284300 Entire home/apt 11 $800.00 800.0 1 17 2023-03-14 4.88 Ohura Ward Ruapehu District False
9300 l26316001 Home in Paihia · ★4.80 · 5 bedrooms · 8 beds ·... Michael 2018-06-25 -35.284870 174.093110 Entire home/apt 11 $750.00 750.0 3 30 2023-07-14 4.80 Bay of Islands-Whangaroa Ward Far North District False
9450 l46400824 Home in Hahei · ★4.0 · 3 bedrooms · 6 beds · 2... Bachcare 2017-08-09 -36.842290 175.804410 Entire home/apt 11 $218.00 218.0 2 6 2023-04-10 4.00 Mercury Bay Ward Thames-Coromandel District False
9600 l16440667 Rental unit in Queenstown · ★4.71 · 4 bedrooms... Allan 2015-05-03 -45.026790 168.694110 Entire home/apt 11 $540.00 540.0 3 18 2023-07-21 4.71 Queenstown-Wakatipu Ward Queenstown-Lakes District True
9857 l24890695 Home in Tamahere · ★4.93 · 6 bedrooms · 6 beds... Andy 2018-05-06 -37.811530 175.335700 Entire home/apt 11 $675.00 675.0 2 15 2023-07-16 4.93 Tamahere Ward Waikato District False
9926 l28111390 Home in Te Horo Beach · ★4.95 · 4 bedrooms · 8... Peter 2017-03-08 -40.790690 175.087070 Entire home/apt 11 $371.00 371.0 3 38 2023-07-10 4.95 Ōtaki Ward Kapiti Coast District False
9939 l29914625 Home in Rotorua · ★4.32 · 4 bedrooms · 6 beds ... Lynn 2018-11-09 -38.128150 176.203940 Entire home/apt 11 $128.00 128.0 1 171 2023-08-12 4.32 Area Outside Ward Rotorua District False
Accommodates: 12
id name host_name host_since latitude longitude room_type accommodates price price_nzd minimum_nights number_of_reviews last_review review_scores_rating region_name region_parent_name is_queenstown
216 l33345467 Home in Tekapo · ★4.89 · 5 bedrooms · 10 beds ... Gaye 2019-03-14 -44.009980 170.495360 Entire home/apt 12 $299.00 299.0 2 53 2023-08-12 4.89 Pukaki Ward Mackenzie District False
348 l692445812974933079 Vacation home in Whangamatā · ★New · 4 bedroom... Brad 2017-02-18 -37.197310 175.872637 Entire home/apt 12 $1,250.00 1250.0 2 0 NaN NaN South Eastern Ward Thames-Coromandel District False
380 l50292889 Townhouse in Auckland · ★4.79 · 4 bedrooms · 6... Eva 2016-02-21 -36.898550 174.756950 Entire home/apt 12 $324.00 324.0 2 91 2023-08-05 4.79 Albert-Eden-Puketāpapa Ward Auckland False
520 l851000018709474618 Home in Auckland · ★4.80 · 5 bedrooms · 6 beds... Eva 2016-02-21 -36.898594 174.746050 Entire home/apt 12 $442.00 442.0 1 5 2023-08-05 4.80 Albert-Eden-Puketāpapa Ward Auckland False
553 l874017656082486674 Home in Pataua North · 4 bedrooms · 7 beds · 2... Penny 2022-11-20 -35.708306 174.519348 Entire home/apt 12 $1,395.00 1395.0 4 0 NaN NaN Whangarei Heads Ward Whangarei District False
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
9721 l17237860 Home in Rotorua · ★4.76 · 3 bedrooms · 12 beds... Roszarri 2016-12-15 -38.112380 176.224990 Entire home/apt 12 $242.00 242.0 1 260 2023-08-12 4.76 Area Outside Ward Rotorua District False
9813 l23078074 Home in Stratford · ★5.0 · 7 bedrooms · 10 bed... Rosanne 2018-02-02 -39.345055 174.285263 Entire home/apt 12 $320.00 320.0 2 42 2023-05-12 5.00 Stratford Urban Ward Stratford District False
9852 l50216666 Home in Ohakune · ★4.88 · 5 bedrooms · 9 beds ... Barry 2015-09-03 -39.422447 175.403351 Entire home/apt 12 $486.00 486.0 2 41 2023-08-28 4.88 Waimarino-Waiouru Ward Ruapehu District False
9927 l632795304080735789 Villa in Queenstown · ★4.54 · 5 bedrooms · 8 b... New Zealand Sothebys International 2014-09-21 -45.016701 168.707993 Entire home/apt 12 $2,499.00 2499.0 5 13 2023-08-06 4.54 Queenstown-Wakatipu Ward Queenstown-Lakes District True
9940 l48048155 Home in Kai Iwi · ★4.69 · 4 bedrooms · 9 beds ... Craig 2018-12-06 -39.884490 174.903240 Entire home/apt 12 $293.00 293.0 2 16 2023-01-08 4.69 Area Outside Ward Whanganui District False

117 rows × 17 columns

Accommodates: 13
id name host_name host_since latitude longitude room_type accommodates price price_nzd minimum_nights number_of_reviews last_review review_scores_rating region_name region_parent_name is_queenstown
662 l45315329 Home in Red Beach · ★4.89 · 4 bedrooms · 5 bed... Madeline 2017-12-04 -36.608940 174.709340 Entire home/apt 13 $850.00 850.0 3 9 2022-04-21 4.89 Albany Ward Auckland False
698 l43615374 Farm stay in Goodwin Road · ★4.82 · 3 bedrooms... Absolute Gisborne 2019-07-04 -38.633640 178.093030 Entire home/apt 13 $250.00 250.0 2 34 2023-04-29 4.82 Tawhiti-Uawa Ward Gisborne District False
1596 l21769756 Home in Rainbow Point · ★4.77 · 4 bedrooms · 7... Bachcare 2017-08-09 -38.720230 176.078280 Entire home/apt 13 $294.00 294.0 2 14 2023-05-20 4.77 Taupō Ward Taupo District False
2591 l866237893092459784 Home in Te Awanga · 6 bedrooms · 10 beds · 2 b... Asha 2015-10-17 -39.633703 176.982384 Entire home/apt 13 $700.00 700.0 3 0 NaN NaN Heretaunga Ward Hastings District False
2624 l49349132 Home in Queenstown · ★4.80 · 7 bedrooms · 11 b... Sage 2019-11-06 -45.044000 168.623810 Entire home/apt 13 $2,200.00 2200.0 1 5 2022-12-28 4.80 Queenstown-Wakatipu Ward Queenstown-Lakes District True
2836 l882380857163990708 Home in Ōtaki Beach · ★5.0 · 6 bedrooms · 6 be... Chris 2016-05-14 -40.743810 175.121080 Entire home/apt 13 $675.00 675.0 2 5 2023-08-19 5.00 Ōtaki Ward Kapiti Coast District False
3107 l51292006 Home in Pirinoa · ★4.74 · 4 bedrooms · 8 beds ... Taylor 2018-01-25 -41.315900 175.255040 Entire home/apt 13 $266.00 266.0 1 34 2023-08-14 4.74 Martinborough Ward South Wairarapa District False
3729 l766168024658008127 Home in Wānaka · ★5.0 · 5 bedrooms · 3.5 baths Te Wanaka Lodge 2013-12-12 -44.666610 169.127470 Entire home/apt 13 $1,610.00 1610.0 2 3 2023-06-28 5.00 Wanaka Ward Queenstown-Lakes District True
4424 l19681609 Home in Otaio · 4 bedrooms · 8 beds · 1 privat... Odette 2016-01-02 -44.549140 170.981760 Private room 13 $150.00 150.0 1 0 NaN NaN Pareora-Otaio-Makikihi Ward Waimate District False
4783 l658814745528603480 Bungalow in Taupō · 4 bedrooms · 5 beds · 2 baths Bachcare 2017-08-09 -38.732610 176.066850 Entire home/apt 13 $290.00 290.0 2 1 2022-09-04 5.00 Taupō Ward Taupo District False
4895 l951680302854291712 Home in Foxton Beach · ★New · 5 bedrooms · 6 b... Jerry And Natalie 2015-08-30 -40.458977 175.218029 Entire home/apt 13 $430.00 430.0 2 0 NaN NaN Kere Kere Ward Horowhenua District False
5246 l23343930 Home in Great Barrier Island · ★4.92 · 4 bedro... Michael 2017-02-20 -36.306830 175.494660 Entire home/apt 13 $450.00 450.0 2 36 2023-03-16 4.92 Waitematā and Gulf Ward Auckland False
5576 l19475425 Home in Broughton Bay · ★4.93 · 3 bedrooms · 6... Clinton 2017-06-23 -41.217360 173.935660 Entire home/apt 13 $200.00 200.0 2 41 2023-06-26 4.93 Marlborough Sounds Ward Marlborough District False
5634 l49798701 Guesthouse in Queenstown · ★4.63 · 4 bedrooms ... Pinewood Lodge 2018-08-16 -45.026370 168.657450 Entire home/apt 13 $479.00 479.0 1 35 2023-09-04 4.63 Queenstown-Wakatipu Ward Queenstown-Lakes District True
5839 l658772842144621128 Bungalow in Opito Bay · 5 bedrooms · 7 beds · ... Bachcare 2017-08-09 -36.722290 175.804350 Entire home/apt 13 $41,975.00 41975.0 2 0 NaN NaN Mercury Bay Ward Thames-Coromandel District False
6263 l45455486 Home in Waihi · ★4.64 · Studio · 9 beds · 2 baths Emily 2020-09-15 -37.388550 175.825940 Entire home/apt 13 $135.00 135.0 1 11 2021-01-09 4.64 Waihi Ward Hauraki District False
8837 l53659716 Home in Tauranga · ★4.96 · 6 bedrooms · 9 beds... Toni 2019-03-23 -37.709400 176.317000 Entire home/apt 13 $1,200.00 1200.0 3 26 2023-04-01 4.96 Mount Maunganui-Papamoa Ward Tauranga City False
9547 l855170301620393115 Home in Rotorua · ★4.80 · 4 bedrooms · 9 beds ... Hannah 2019-02-13 -38.047930 176.331050 Entire home/apt 13 $180.00 180.0 2 5 2023-07-06 4.80 Area Outside Ward Rotorua District False
Accommodates: 14
id name host_name host_since latitude longitude room_type accommodates price price_nzd minimum_nights number_of_reviews last_review review_scores_rating region_name region_parent_name is_queenstown
275 l856720167080084287 Home in Matapouri · 6 bedrooms · 10 beds · 3 b... Bachcare 2017-08-09 -35.565300 174.505970 Entire home/apt 14 $729.00 729.0 2 0 NaN NaN Hikurangi-Coastal Ward Whangarei District False
314 l882936993500243840 Home in Te Puke · 3 bedrooms · 8 beds · 2.5 baths Sarah 2016-01-08 -37.791270 176.321700 Entire home/apt 14 $573.00 573.0 3 0 NaN NaN Maketu-Te Puke Ward Western Bay of Plenty District False
492 l888421773909763237 Home in Auckland · ★5.0 · 4 bedrooms · 6 beds ... Sam 2018-06-28 -36.912230 174.832930 Entire home/apt 14 $370.00 370.0 2 9 2023-08-20 5.00 Maungakiekie-Tāmaki Ward Auckland False
776 l48945714 Villa in North Cove · ★5.0 · 7 bedrooms · 7 be... Gower And Robyn 2015-03-26 -36.407480 174.831890 Entire home/apt 14 $2,013.00 2013.0 2 4 2022-04-17 5.00 Rodney Ward Auckland False
1052 l772130903172759031 Vacation home in Roxburgh · 7 bedrooms · 14 be... Anna 2018-07-03 -45.545960 169.312150 Entire home/apt 14 $155.00 155.0 1 1 2023-08-20 5.00 Teviot Valley Ward Central Otago District False
1093 l37016340 Rental unit in Auckland · ★4.86 · 7 bedrooms ·... Eleanor 2017-01-26 -36.852170 174.758170 Entire home/apt 14 $999.00 999.0 1 42 2020-03-17 4.86 Waitematā and Gulf Ward Auckland False
1512 l53832687 Home in Rotorua · ★4.76 · 4 bedrooms · 12 beds... Jay 2021-12-14 -38.121100 176.309740 Entire home/apt 14 $581.00 581.0 2 49 2023-08-27 4.76 Area Outside Ward Rotorua District False
1626 l21714907 Home in Taupo · ★4.97 · 6 bedrooms · 9 beds · ... Nanette 2017-04-19 -38.691820 176.095150 Entire home/apt 14 $600.00 600.0 1 65 2023-08-20 4.97 Taupō Ward Taupo District False
2117 l593745529019935374 Home in Queenstown · ★4.77 · 5 bedrooms · 7 be... Bachcare 2017-08-09 -45.025420 168.695790 Entire home/apt 14 $640.00 640.0 2 13 2023-08-07 4.77 Queenstown-Wakatipu Ward Queenstown-Lakes District True
2436 l38486473 Villa in Hawke's Bay · 8 bedrooms · 10 beds · ... Holly 2019-09-09 -39.641660 176.988880 Entire home/apt 14 $6,250.00 6250.0 3 0 NaN NaN Heretaunga Ward Hastings District False
2517 l47158356 Home in Taupo · ★4.68 · 6 bedrooms · 9 beds · ... Chanelle 2023-08-15 -38.705720 176.029750 Entire home/apt 14 $1,281.00 1281.0 2 41 2023-08-14 4.68 Taupō Ward Taupo District False
2556 l44819230 Rental unit in Dunedin · ★4.63 · 5 bedrooms · ... Simon And Sacha 2016-03-16 -45.879690 170.494620 Entire home/apt 14 $188.00 188.0 1 30 2023-08-26 4.63 Area Outside Ward Dunedin City False
2608 l16053877 Home in Omaha · ★4.95 · 5 bedrooms · 12 beds ·... Nina 2016-11-20 -36.335450 174.777380 Entire home/apt 14 $400.00 400.0 3 21 2023-07-30 4.95 Rodney Ward Auckland False
2694 l49113959 Home in Omamari · ★4.54 · 5 bedrooms · 9 beds ... Joanne 2016-04-25 -35.865190 173.664770 Entire home/apt 14 $414.00 414.0 2 46 2023-04-30 4.54 West Coast-Central Ward Kaipara District False
2842 l1313704 Home in Arrowtown · ★4.95 · 7 bedrooms · 14 be... Jackie 2013-06-26 -44.937680 168.834110 Entire home/apt 14 $394.00 394.0 3 74 2023-06-27 4.95 Arrowtown Ward Queenstown-Lakes District True
3073 l779200812581055187 Home in Tauranga · ★4.91 · 5 bedrooms · 8 beds... David 2019-10-13 -37.737930 176.201400 Entire home/apt 14 $621.00 621.0 1 22 2023-04-21 4.91 Te Papa-Welcome Bay Ward Tauranga City False
4881 l48304306 Rental unit in Queenstown · ★4.85 · 5 bedrooms... Ray 2016-07-18 -45.031400 168.663670 Entire home/apt 14 $801.00 801.0 2 107 2023-08-20 4.85 Queenstown-Wakatipu Ward Queenstown-Lakes District True
4900 l596785676940255541 Home in Newstead · ★4.32 · 5 bedrooms · 10 bed... Angela 2020-11-23 -37.758330 175.372610 Entire home/apt 14 $500.00 500.0 2 44 2023-08-05 4.32 Eureka Ward Waikato District False
5241 l724224878688181868 Home in Cooks Beach · ★5.0 · 4 bedrooms · 10 b... Dor 2015-12-07 -36.837820 175.756580 Entire home/apt 14 $600.00 600.0 2 3 2022-12-17 5.00 Mercury Bay Ward Thames-Coromandel District False
5640 l51270122 Guest suite in Erua · ★4.14 · 6 bedrooms · 12 ... Dean 2020-09-15 -39.227234 175.397690 Entire home/apt 14 $459.00 459.0 2 7 2022-08-06 4.14 National Park Ward Ruapehu District False
6013 l722450718697500176 Home in Pataua North · 6 bedrooms · 10 beds · ... Bridget 2022-09-23 -35.712200 174.520800 Entire home/apt 14 $1,105.00 1105.0 2 1 2022-12-29 5.00 Whangarei Heads Ward Whangarei District False
6097 l772143355443234092 Serviced apartment in Roxburgh · 4 bedrooms · ... Anna 2018-07-03 -45.542870 169.316030 Entire home/apt 14 $195.00 195.0 2 0 NaN NaN Teviot Valley Ward Central Otago District False
6434 l679218595271862526 Home in Queenstown · ★4.89 · 4 bedrooms · 4 be... Highland Real Estate 2015-06-17 -45.027110 168.663580 Entire home/apt 14 $905.00 905.0 3 9 2023-08-12 4.89 Queenstown-Wakatipu Ward Queenstown-Lakes District True
6692 l882306507593202048 Home in Pukehina · ★5.0 · 5 bedrooms · 6 beds ... Jennifer 2023-03-26 -37.869640 176.584860 Entire home/apt 14 $574.00 574.0 2 3 2023-06-17 5.00 Maketu-Te Puke Ward Western Bay of Plenty District False
6853 l31367220 Home in New Zealand · ★4.96 · 6 bedrooms · 10 ... Peta 2019-01-07 -41.213450 173.971870 Entire home/apt 14 $1,097.00 1097.0 2 28 2023-02-26 4.96 Marlborough Sounds Ward Marlborough District False
7194 l25407202 Home in Tutukaka · ★4.91 · 5 bedrooms · 11 bed... Alan 2016-09-22 -35.626620 174.538440 Entire home/apt 14 $729.00 729.0 2 192 2023-08-27 4.91 Hikurangi-Coastal Ward Whangarei District False
7419 l12237406 Villa in Whangateau · ★4.98 · 7 bedrooms · 12 ... Daniel 2016-02-05 -36.293480 174.747360 Entire home/apt 14 $814.00 814.0 3 101 2023-07-15 4.98 Rodney Ward Auckland False
7492 l2425326 Home in Arthurs Point · ★4.89 · 7 bedrooms · 1... Janine 2014-02-16 -44.984390 168.679120 Entire home/apt 14 $1,095.00 1095.0 5 9 2023-08-25 4.89 Queenstown-Wakatipu Ward Queenstown-Lakes District True
7743 l43165255 Home in Lake Tekapo · ★4.89 · 4 bedrooms · 9 b... Book Tekapo 2018-09-09 -44.005740 170.471310 Entire home/apt 14 $289.00 289.0 2 27 2023-08-16 4.89 Pukaki Ward Mackenzie District False
7971 l36074405 Cottage in Taumarunui · ★4.94 · 5 bedrooms · 9... Jane 2018-05-15 -38.864460 175.340550 Entire home/apt 14 $645.00 645.0 1 111 2023-09-02 4.94 Taumarunui Ward Ruapehu District False
8114 l53984430 Home in Ōhope · ★4.96 · 4 bedrooms · 5 beds · ... Liana 2018-10-28 -37.969010 177.046340 Entire home/apt 14 $350.00 350.0 2 24 2023-08-17 4.96 Whakatāne-Ōhope Ward Whakatane District False
8163 l7519242 Home in Queenstown · ★4.93 · 6 bedrooms · 13 b... Alison 2015-07-24 -45.030580 168.674930 Entire home/apt 14 $1,457.00 1457.0 3 84 2023-08-30 4.93 Queenstown-Wakatipu Ward Queenstown-Lakes District True
8419 l568284871417971091 Home in Taupō · ★4.69 · 4 bedrooms · 7 beds · ... Be My Guest 2018-03-29 -38.715740 176.096110 Entire home/apt 14 $624.00 624.0 2 32 2023-08-12 4.69 Taupō Ward Taupo District False
8894 l41329401 Home in Papamoa · 4 bedrooms · 10 beds · 2.5 b... Sarah 2017-07-04 -37.688010 176.262390 Entire home/apt 14 $1,200.00 1200.0 4 0 NaN NaN Mount Maunganui-Papamoa Ward Tauranga City False
9210 l42946087 Villa in Rotorua · ★4.61 · 7 bedrooms · 8 beds... Wonderland 2018-06-27 -38.107680 176.240900 Entire home/apt 14 $180.00 180.0 1 110 2023-07-05 4.61 Area Outside Ward Rotorua District False
9268 l871283342512124255 Vacation home in Mangawhai · 4 bedrooms · 4 be... Kayla 2015-08-04 -36.093273 174.573846 Entire home/apt 14 $700.00 700.0 7 0 NaN NaN Mangawhai-Kaiwaka Ward Kaipara District False
9532 l48937277 Home in New Plymouth · ★4.91 · 6 bedrooms · 6 ... Jane 2021-03-28 -39.064030 174.076210 Entire home/apt 14 $650.00 650.0 1 46 2023-08-26 4.91 New Plymouth City Ward New Plymouth District False
9655 l26540858 Home in Pauanui · ★4.90 · 4 bedrooms · 8 beds ... Rachel K 2018-05-16 -37.012700 175.864990 Entire home/apt 14 $450.00 450.0 2 30 2023-07-29 4.90 South Eastern Ward Thames-Coromandel District False
9661 l37783395 Home in Oropi · ★4.86 · 6 bedrooms · 5 beds · ... Matthew & Aurore 2018-07-17 -37.779620 176.155400 Entire home/apt 14 $800.00 800.0 7 14 2023-07-15 4.86 Kaimai Ward Western Bay of Plenty District False
9821 l27090877 Home in Prebbleton · ★4.76 · 5 bedrooms · 7 be... Ohana 2018-07-15 -43.592310 172.501790 Entire home/apt 14 $335.00 335.0 1 218 2023-08-25 4.76 Springs Ward Selwyn District False
9834 l23022067 Home in Pauanui · ★4.82 · 5 bedrooms · 10 beds... Kaye 2018-01-30 -37.016830 175.857380 Entire home/apt 14 $629.00 629.0 3 11 2022-11-21 4.82 South Eastern Ward Thames-Coromandel District False
Accommodates: 15
id name host_name host_since latitude longitude room_type accommodates price price_nzd minimum_nights number_of_reviews last_review review_scores_rating region_name region_parent_name is_queenstown
244 l54248470 Home in Twizel · ★4.96 · 4 bedrooms · 6 beds ·... Amy 2016-03-03 -44.256340 170.087960 Entire home/apt 15 $224.00 224.0 2 23 2023-07-15 4.96 Pukaki Ward Mackenzie District False
590 l22322349 Home in Opotiki · ★4.52 · 5 bedrooms · 12 beds... Mark 2017-12-18 -38.015390 177.276750 Entire home/apt 15 $141.00 141.0 1 85 2023-02-10 4.52 Opotiki Ward Ōpōtiki District False
691 l27150184 Home in Orewa · ★4.97 · 6 bedrooms · 11 beds ·... Kelli 2016-07-19 -36.595140 174.695230 Entire home/apt 15 $1,064.00 1064.0 2 68 2023-08-26 4.97 Albany Ward Auckland False
1438 l563892639516810817 Villa in Marton · ★4.93 · 5 bedrooms · 5 beds ... Alana 2018-04-16 -40.074830 175.377960 Entire home/apt 15 $300.00 300.0 1 15 2022-08-11 4.93 Central Ward Rangitikei District False
1812 l579198429733929431 Home in Cambridge · ★4.95 · 5 bedrooms · 9 bed... Angela 2020-09-20 -37.895220 175.460630 Entire home/apt 15 $552.00 552.0 3 22 2023-07-16 4.95 Cambridge Ward Waipa District False
1954 l829839398148424856 Rental unit in Methven · 8 bedrooms · 10 beds ... Sam 2016-05-16 -43.629860 171.648350 Entire home/apt 15 $805.00 805.0 2 2 2023-07-25 5.00 Western Ward Ashburton District False
2582 l40118215 Home in Taupo · ★4.76 · 5 bedrooms · 10 beds ·... Chanelle 2023-08-15 -38.701680 176.089220 Entire home/apt 15 $802.00 802.0 2 110 2023-08-19 4.76 Taupō Ward Taupo District False
2937 l52170618 Bungalow in Tahawai · ★5.0 · 5 bedrooms · 12 b... Sapphire Springs 2021-09-04 -37.589950 175.884290 Entire home/apt 15 $414.00 414.0 1 4 2022-12-10 5.00 Katikati-Waihi Beach Ward Western Bay of Plenty District False
4592 l13831590 Home in Oriental Bay · ★4.93 · 6 bedrooms · 8 ... Carolyn 2016-07-03 -41.291470 174.797460 Entire home/apt 15 $479.00 479.0 2 318 2023-09-03 4.93 Pukehīnau/Lambton Ward Wellington City False
4921 l914656978083224752 Home in Mount Maunganui · ★5.0 · 5 bedrooms · ... David 2019-10-13 -37.683560 176.235320 Entire home/apt 15 $407.00 407.0 2 7 2023-09-01 5.00 Mount Maunganui-Papamoa Ward Tauranga City False
5269 l5125739 Villa in Wanaka · ★4.76 · 6 bedrooms · 11 beds... Robyn 2015-01-21 -44.678880 169.154710 Entire home/apt 15 $850.00 850.0 3 50 2023-09-02 4.76 Wanaka Ward Queenstown-Lakes District True
5507 l46663450 Farm stay in Auckland · ★4.89 · 6 bedrooms · 9... Robert 2012-06-20 -37.197150 174.976110 Entire home/apt 15 $1,003.00 1003.0 2 9 2023-05-13 4.89 Franklin Ward Auckland False
5763 l15358332 Home in Paihia · ★4.70 · 6 bedrooms · 11 beds ... Karl 2016-10-04 -35.274090 174.058700 Entire home/apt 15 $650.00 650.0 2 74 2023-08-27 4.70 Bay of Islands-Whangaroa Ward Far North District False
6107 l30377511 Home in Onemana · ★4.98 · 7 bedrooms · 9 beds ... Renee 2015-06-27 -37.149010 175.877360 Entire home/apt 15 $1,257.00 1257.0 2 51 2023-07-15 4.98 South Eastern Ward Thames-Coromandel District False
6481 l43933739 Rental unit in Methven · ★4.69 · 5 bedrooms · ... Michelle 2017-07-13 -43.587086 171.529877 Entire home/apt 15 $527.00 527.0 1 78 2023-08-12 4.69 Western Ward Ashburton District False
6486 l31339506 Home in Taupo · ★4.93 · 5 bedrooms · 12 beds ·... Rhiannon 2014-02-24 -38.734760 176.064520 Entire home/apt 15 $356.00 356.0 2 116 2023-08-20 4.93 Taupō Ward Taupo District False
7095 l8035904 Home in Queenstown · ★4.97 · 5 bedrooms · 11 b... Alison 2015-07-24 -45.033460 168.673950 Entire home/apt 15 $1,380.00 1380.0 4 73 2023-06-13 4.97 Queenstown-Wakatipu Ward Queenstown-Lakes District True
8183 l583742440919232942 Home in Whanganui · ★4.90 · 6 bedrooms · 10 be... Anna 2022-02-13 -39.908940 175.040820 Entire home/apt 15 $495.00 495.0 2 42 2023-07-02 4.90 Area Outside Ward Whanganui District False
8611 l548072807140400408 Villa in Omaha · ★4.88 · 5 bedrooms · 9 beds ·... Sam 2022-01-25 -36.344040 174.780730 Entire home/apt 15 $829.00 829.0 1 25 2023-08-19 4.88 Rodney Ward Auckland False
Accommodates: 16
id name host_name host_since latitude longitude room_type accommodates price price_nzd minimum_nights number_of_reviews last_review review_scores_rating region_name region_parent_name is_queenstown
52 l53067566 Home in Ohakune · ★5.0 · 10 bedrooms · 14 beds... Paul 2018-10-10 -39.406540 175.416470 Entire home/apt 16 $1,479.00 1479.0 2 6 2023-08-27 5.00 Waimarino-Waiouru Ward Ruapehu District False
58 l800883640435675940 Home in Taupō · ★4.76 · 4 bedrooms · 12 beds ·... Simon 2023-01-09 -38.717467 176.084057 Entire home/apt 16 $502.00 502.0 1 21 2023-08-06 4.76 Taupō Ward Taupo District False
133 l17576914 Villa in Whangapoua · ★4.87 · 7 bedrooms · 10 ... Lyn 2017-03-06 -36.719080 175.605900 Entire home/apt 16 $1,807.00 1807.0 2 38 2023-01-29 4.87 Mercury Bay Ward Thames-Coromandel District False
145 l43882869 Home in Puketapu · 10 bedrooms · 46 beds · 3.5... Katie 2020-06-21 -39.440470 176.719500 Entire home/apt 16 $1,200.00 1200.0 1 0 NaN NaN Mohaka Ward Hastings District False
231 l28722686 Boutique hotel in Ettrick · 14 bedrooms · 38 b... Anna 2018-07-03 -45.638470 169.368650 Private room 16 $1,800.00 1800.0 2 0 NaN NaN Teviot Valley Ward Central Otago District False
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
9236 l47079820 Home in Lake Tekapo · ★4.96 · 4 bedrooms · 22 ... Book Tekapo 2018-09-09 -44.003340 170.468280 Entire home/apt 16 $686.00 686.0 1 28 2023-08-20 4.96 Pukaki Ward Mackenzie District False
9502 l23728252 Townhouse in Raetihi · 10 bedrooms · 25 beds ·... Sandy 2015-02-05 -39.434100 175.276520 Entire home/apt 16 $1,350.00 1350.0 1 1 2021-07-18 5.00 Waimarino-Waiouru Ward Ruapehu District False
9531 l776215836011984804 Home in Ohakune · ★4.92 · 3 bedrooms · 18 beds... Luke 2016-09-24 -39.416245 175.397840 Entire home/apt 16 $320.00 320.0 2 13 2023-08-25 4.92 Waimarino-Waiouru Ward Ruapehu District False
9538 l28993723 Bed and breakfast in Pongaroa · ★4.58 · 1 bedr... Paula & Guy 2018-10-03 -40.540800 176.191120 Shared room 16 $50.00 50.0 1 24 2023-07-26 4.58 North Tararua Ward Tararua District False
9912 l48815003 Home in Himatangi Beach · ★4.83 · 3 bedrooms ·... Dave & Tina 2019-03-25 -40.370430 175.244380 Entire home/apt 16 $550.00 550.0 1 29 2023-07-04 4.83 Rural Ward Manawatu District False

64 rows × 17 columns

groupby() can also be used to produce a DataFrame of aggregate statistics for each group. In the following, see how we:

  • Specify the columns from which to create a group for each combinations of values (['accommodates', 'room_type'])
  • Use indexing to select a list of columns to calculate the statistic for (['price_nzd', 'review_scores_rating'])
  • Choose a statistic to calculate: mean()
    • You can also compute sum(), std(), and more.
In [ ]:
listings_df.groupby(['accommodates', 'room_type'])[['price_nzd', 'review_scores_rating']].mean()
Out[ ]:
price_nzd review_scores_rating
accommodates room_type
1 Entire home/apt 284.052632 4.535000
Hotel room 71.250000 4.487500
Private room 84.880383 4.706169
Shared room 101.793103 4.708824
2 Entire home/apt 214.953039 4.847356
Hotel room 210.681818 4.640000
Private room 139.415584 4.778414
Shared room 96.833333 4.493333
3 Entire home/apt 281.924623 4.796456
Hotel room 211.444444 4.747500
Private room 149.656934 4.775210
Shared room 44.500000 4.427500
4 Entire home/apt 290.162078 4.808050
Hotel room 317.700000 4.660000
Private room 147.877660 4.768571
Shared room 120.000000 5.000000
5 Entire home/apt 424.461682 4.769833
Hotel room 832.000000 4.310000
Private room 175.968750 4.821290
6 Entire home/apt 443.476253 4.813687
Hotel room 288.333333 4.373333
Private room 252.490196 4.743721
Shared room 38.000000 4.840000
7 Entire home/apt 472.206989 4.761937
Private room 97.400000 4.848000
8 Entire home/apt 668.229323 4.774574
Hotel room 604.000000 4.780000
Private room 684.181818 4.663000
Shared room 42.000000 4.200000
9 Entire home/apt 429.633987 4.777132
Private room 224.000000 4.923333
Shared room 23.000000 4.670000
10 Entire home/apt 609.468227 4.744494
Private room 564.500000 4.690000
11 Entire home/apt 439.977778 4.759286
Private room 249.500000 4.395000
12 Entire home/apt 634.594828 4.824674
Private room 180.000000 4.330000
13 Entire home/apt 3069.647059 4.850000
Private room 150.000000 NaN
14 Entire home/apt 814.414634 4.835143
15 Entire home/apt 659.736842 4.880000
16 Entire home/apt 1173.767857 4.802083
Private room 501.833333 4.750000
Shared room 45.000000 4.740000

Note that groupby() turns the group columns into an index. We can turn it back into a regular column with reset_index():

In [ ]:
listing_groups_df = listings_df.groupby(['accommodates', 'room_type'])[['price_nzd', 'review_scores_rating']].mean().reset_index()
listing_groups_df
Out[ ]:
accommodates room_type price_nzd review_scores_rating
0 1 Entire home/apt 284.052632 4.535000
1 1 Hotel room 71.250000 4.487500
2 1 Private room 84.880383 4.706169
3 1 Shared room 101.793103 4.708824
4 2 Entire home/apt 214.953039 4.847356
5 2 Hotel room 210.681818 4.640000
6 2 Private room 139.415584 4.778414
7 2 Shared room 96.833333 4.493333
8 3 Entire home/apt 281.924623 4.796456
9 3 Hotel room 211.444444 4.747500
10 3 Private room 149.656934 4.775210
11 3 Shared room 44.500000 4.427500
12 4 Entire home/apt 290.162078 4.808050
13 4 Hotel room 317.700000 4.660000
14 4 Private room 147.877660 4.768571
15 4 Shared room 120.000000 5.000000
16 5 Entire home/apt 424.461682 4.769833
17 5 Hotel room 832.000000 4.310000
18 5 Private room 175.968750 4.821290
19 6 Entire home/apt 443.476253 4.813687
20 6 Hotel room 288.333333 4.373333
21 6 Private room 252.490196 4.743721
22 6 Shared room 38.000000 4.840000
23 7 Entire home/apt 472.206989 4.761937
24 7 Private room 97.400000 4.848000
25 8 Entire home/apt 668.229323 4.774574
26 8 Hotel room 604.000000 4.780000
27 8 Private room 684.181818 4.663000
28 8 Shared room 42.000000 4.200000
29 9 Entire home/apt 429.633987 4.777132
30 9 Private room 224.000000 4.923333
31 9 Shared room 23.000000 4.670000
32 10 Entire home/apt 609.468227 4.744494
33 10 Private room 564.500000 4.690000
34 11 Entire home/apt 439.977778 4.759286
35 11 Private room 249.500000 4.395000
36 12 Entire home/apt 634.594828 4.824674
37 12 Private room 180.000000 4.330000
38 13 Entire home/apt 3069.647059 4.850000
39 13 Private room 150.000000 NaN
40 14 Entire home/apt 814.414634 4.835143
41 15 Entire home/apt 659.736842 4.880000
42 16 Entire home/apt 1173.767857 4.802083
43 16 Private room 501.833333 4.750000
44 16 Shared room 45.000000 4.740000

Such DataFrames produced with groupby() can be very useful for producing plots of statistics, like bar charts:

In [ ]:
px.bar(
    listing_groups_df,
    x='accommodates',
    y='price_nzd',
    color='room_type',
    barmode='group',
    title='Mean Price',
)

We can also export our new DataFrame to a CSV file:

In [ ]:
listing_groups_df.to_csv('listing_groups.csv')

Handling Missing Data in Pandas¶

We can also use .count() to count the number of rows in each group, but notice that the count for the rating column is less than the price column:

In [ ]:
listings_df.groupby('accommodates')[['price_nzd', 'review_scores_rating']].count().reset_index()
Out[ ]:
accommodates price_nzd review_scores_rating
0 1 261 191
1 2 3301 2964
2 3 548 495
3 4 1798 1608
4 5 569 512
5 6 1571 1349
6 7 377 320
7 8 811 692
8 9 157 133
9 10 301 249
10 11 47 44
11 12 117 93
12 13 18 14
13 14 41 35
14 15 19 19
15 16 64 54

This is because there are missing (aka null, aka NA) values in the rating column that are ignored by count().

We can use isna() to get a mask of rows where a value is missing:

In [ ]:
listings_df['review_scores_rating'].isna()
Out[ ]:
0       False
1       False
2       False
3        True
4       False
        ...  
9995    False
9996    False
9997    False
9998    False
9999    False
Name: review_scores_rating, Length: 10000, dtype: bool
In [ ]:
listings_df[listings_df['review_scores_rating'].isna()]
Out[ ]:
id name host_name host_since latitude longitude room_type accommodates price price_nzd minimum_nights number_of_reviews last_review review_scores_rating region_name region_parent_name is_queenstown
3 l931591167956934516 Home in Minden · ★New · 4 bedrooms · 5 beds · ... Paul 2018-03-13 -37.700326 176.040560 Entire home/apt 10 $700.00 700.0 5 0 NaN NaN Kaimai Ward Western Bay of Plenty District False
13 l883078974919276291 Home in Papamoa · 3 bedrooms · 3 beds · 2 baths Sarah 2018-01-21 -37.730367 176.344236 Entire home/apt 6 $350.00 350.0 1 0 NaN NaN Mount Maunganui-Papamoa Ward Tauranga City False
24 l937737502740904874 Home in Picton · ★New · 3 bedrooms · 4 beds · ... Bachcare 2017-08-09 -41.292540 174.009649 Entire home/apt 6 $307.00 307.0 2 0 NaN NaN Marlborough Sounds Ward Marlborough District False
27 l32473976 Home in Auckland · 1 bedroom · 1 bed · 1 share... Ceci 2019-02-18 -36.893240 174.652410 Private room 2 $100.00 100.0 1 0 NaN NaN Waitākere Ward Auckland False
43 l755459178365505373 Home in Tauranga · 3 bedrooms · 6 beds · 2 baths Sophie 2017-07-10 -37.695530 176.273700 Entire home/apt 8 $450.00 450.0 6 0 NaN NaN Mount Maunganui-Papamoa Ward Tauranga City False
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
9967 l837260936216282612 Home in Lake Hayes · 4 bedrooms · 4 beds · 3 b... Bachcare 2017-08-09 -45.000640 168.792750 Entire home/apt 8 $631.00 631.0 2 0 NaN NaN Queenstown-Wakatipu Ward Queenstown-Lakes District True
9978 l967060021628447619 Home in Matarangi · ★New · 3 bedrooms · 3 beds... Liz 2017-12-30 -36.733004 175.650887 Entire home/apt 6 $400.00 400.0 2 0 NaN NaN Mercury Bay Ward Thames-Coromandel District False
9988 l658780134708300897 Bungalow in Ohakune · 3 bedrooms · 4 beds · 2 ... Bachcare 2017-08-09 -39.420900 175.405060 Entire home/apt 8 $359.00 359.0 2 0 NaN NaN Waimarino-Waiouru Ward Ruapehu District False
9991 l932823169085328966 Cabin in Mārahau · ★New · 2 bedrooms · 2 beds ... Melanie 2019-01-04 -40.991850 172.995950 Entire home/apt 4 $300.00 300.0 2 0 NaN NaN Motueka Ward Tasman District False
9992 l49571900 Guesthouse in Whitianga · 1 bedroom · 1 bed · ... Jill 2019-07-14 -36.824810 175.702700 Entire home/apt 3 $232.00 232.0 4 0 NaN NaN Mercury Bay Ward Thames-Coromandel District False

1228 rows × 17 columns

We can then invert the mask with ~ and filter out rows with missing values:

In [ ]:
listings_df[~listings_df['review_scores_rating'].isna()]
Out[ ]:
id name host_name host_since latitude longitude room_type accommodates price price_nzd minimum_nights number_of_reviews last_review review_scores_rating region_name region_parent_name is_queenstown
0 l11909616 Rental unit in Opononi · ★4.73 · 1 bedroom · 2... Richard 2012-08-01 -35.513980 173.389550 Private room 3 $100.00 100.0 1 505 2023-08-25 4.73 Kaikohe-Hokianga Ward Far North District False
1 l44538694 Farm stay in Miranda · ★4.93 · 3 bedrooms · 1 ... Judi 2020-08-03 -37.172970 175.288640 Entire home/apt 7 $190.00 190.0 1 61 2023-04-15 4.93 Plains Ward Hauraki District False
2 l695685053729167791 Bungalow in Martinborough · 2 bedrooms · 2 bed... Bachcare 2017-08-09 -41.223400 175.449690 Entire home/apt 4 $314.00 314.0 2 2 2023-01-28 5.00 Martinborough Ward South Wairarapa District False
4 l669685796106302232 Home in Wānaka · ★4.69 · 5 bedrooms · 6 beds ·... Justine 2017-05-12 -44.682003 169.157802 Entire home/apt 10 $846.00 846.0 1 16 2023-08-21 4.69 Wanaka Ward Queenstown-Lakes District True
5 l47705689 Hotel in Katikati · ★5.0 · 2 bedrooms · 3 beds... Erin 2019-05-10 -37.557210 175.917070 Private room 5 $270.00 270.0 1 4 2022-05-29 5.00 Katikati-Waihi Beach Ward Western Bay of Plenty District False
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
9995 l703127457042300625 Guesthouse in Rotorua · ★5.0 · 2 bedrooms · 4 ... Tony 2022-08-27 -38.162510 176.236540 Entire home/apt 5 $205.00 205.0 2 25 2023-08-27 5.00 Area Outside Ward Rotorua District False
9996 l21030599 Home in Tauranga · ★4.95 · 2 bedrooms · 3 beds... Dee 2017-09-21 -37.684060 176.236860 Private room 4 $65.00 65.0 1 64 2023-02-17 4.95 Mount Maunganui-Papamoa Ward Tauranga City False
9997 l24721690 Rental unit in Wellington · 1 bedroom · 1 bed ... Bethany 2018-04-29 -41.301810 174.786020 Entire home/apt 2 $115.00 115.0 21 1 2018-09-04 5.00 Pukehīnau/Lambton Ward Wellington City False
9998 l6787826 Guest suite in Tauranga · ★4.92 · Studio · 1 bath Adelle 2015-06-11 -37.638210 176.184620 Entire home/apt 2 $160.00 160.0 2 142 2023-07-15 4.92 Mount Maunganui-Papamoa Ward Tauranga City False
9999 l41072501 Home in Auckland · ★3.83 · 1 bedroom · 1 bed ·... Harry 2019-12-26 -36.829150 174.616070 Private room 2 $95.00 95.0 1 6 2021-08-15 3.83 Waitākere Ward Auckland False

8772 rows × 17 columns

Alternatively, we can use fillna() to replace missing values with a fixed value. For example, we make want to consider un-reviewed listings with a mid-point rating:

In [ ]:
listings_df['review_scores_rating_filled'] = listings_df['review_scores_rating'].fillna(2.5)
listings_df
Out[ ]:
id name host_name host_since latitude longitude room_type accommodates price price_nzd minimum_nights number_of_reviews last_review review_scores_rating region_name region_parent_name is_queenstown review_scores_rating_filled
0 l11909616 Rental unit in Opononi · ★4.73 · 1 bedroom · 2... Richard 2012-08-01 -35.513980 173.389550 Private room 3 $100.00 100.0 1 505 2023-08-25 4.73 Kaikohe-Hokianga Ward Far North District False 4.73
1 l44538694 Farm stay in Miranda · ★4.93 · 3 bedrooms · 1 ... Judi 2020-08-03 -37.172970 175.288640 Entire home/apt 7 $190.00 190.0 1 61 2023-04-15 4.93 Plains Ward Hauraki District False 4.93
2 l695685053729167791 Bungalow in Martinborough · 2 bedrooms · 2 bed... Bachcare 2017-08-09 -41.223400 175.449690 Entire home/apt 4 $314.00 314.0 2 2 2023-01-28 5.00 Martinborough Ward South Wairarapa District False 5.00
3 l931591167956934516 Home in Minden · ★New · 4 bedrooms · 5 beds · ... Paul 2018-03-13 -37.700326 176.040560 Entire home/apt 10 $700.00 700.0 5 0 NaN NaN Kaimai Ward Western Bay of Plenty District False 2.50
4 l669685796106302232 Home in Wānaka · ★4.69 · 5 bedrooms · 6 beds ·... Justine 2017-05-12 -44.682003 169.157802 Entire home/apt 10 $846.00 846.0 1 16 2023-08-21 4.69 Wanaka Ward Queenstown-Lakes District True 4.69
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
9995 l703127457042300625 Guesthouse in Rotorua · ★5.0 · 2 bedrooms · 4 ... Tony 2022-08-27 -38.162510 176.236540 Entire home/apt 5 $205.00 205.0 2 25 2023-08-27 5.00 Area Outside Ward Rotorua District False 5.00
9996 l21030599 Home in Tauranga · ★4.95 · 2 bedrooms · 3 beds... Dee 2017-09-21 -37.684060 176.236860 Private room 4 $65.00 65.0 1 64 2023-02-17 4.95 Mount Maunganui-Papamoa Ward Tauranga City False 4.95
9997 l24721690 Rental unit in Wellington · 1 bedroom · 1 bed ... Bethany 2018-04-29 -41.301810 174.786020 Entire home/apt 2 $115.00 115.0 21 1 2018-09-04 5.00 Pukehīnau/Lambton Ward Wellington City False 5.00
9998 l6787826 Guest suite in Tauranga · ★4.92 · Studio · 1 bath Adelle 2015-06-11 -37.638210 176.184620 Entire home/apt 2 $160.00 160.0 2 142 2023-07-15 4.92 Mount Maunganui-Papamoa Ward Tauranga City False 4.92
9999 l41072501 Home in Auckland · ★3.83 · 1 bedroom · 1 bed ·... Harry 2019-12-26 -36.829150 174.616070 Private room 2 $95.00 95.0 1 6 2021-08-15 3.83 Waitākere Ward Auckland False 3.83

10000 rows × 18 columns

Finally, dropna() on a DataFrame can be used to simply remove any rows where any column contains a missing value:

In [ ]:
listings_df.dropna()
Out[ ]:
id name host_name host_since latitude longitude room_type accommodates price price_nzd minimum_nights number_of_reviews last_review review_scores_rating region_name region_parent_name is_queenstown review_scores_rating_filled
0 l11909616 Rental unit in Opononi · ★4.73 · 1 bedroom · 2... Richard 2012-08-01 -35.513980 173.389550 Private room 3 $100.00 100.0 1 505 2023-08-25 4.73 Kaikohe-Hokianga Ward Far North District False 4.73
1 l44538694 Farm stay in Miranda · ★4.93 · 3 bedrooms · 1 ... Judi 2020-08-03 -37.172970 175.288640 Entire home/apt 7 $190.00 190.0 1 61 2023-04-15 4.93 Plains Ward Hauraki District False 4.93
2 l695685053729167791 Bungalow in Martinborough · 2 bedrooms · 2 bed... Bachcare 2017-08-09 -41.223400 175.449690 Entire home/apt 4 $314.00 314.0 2 2 2023-01-28 5.00 Martinborough Ward South Wairarapa District False 5.00
4 l669685796106302232 Home in Wānaka · ★4.69 · 5 bedrooms · 6 beds ·... Justine 2017-05-12 -44.682003 169.157802 Entire home/apt 10 $846.00 846.0 1 16 2023-08-21 4.69 Wanaka Ward Queenstown-Lakes District True 4.69
5 l47705689 Hotel in Katikati · ★5.0 · 2 bedrooms · 3 beds... Erin 2019-05-10 -37.557210 175.917070 Private room 5 $270.00 270.0 1 4 2022-05-29 5.00 Katikati-Waihi Beach Ward Western Bay of Plenty District False 5.00
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
9995 l703127457042300625 Guesthouse in Rotorua · ★5.0 · 2 bedrooms · 4 ... Tony 2022-08-27 -38.162510 176.236540 Entire home/apt 5 $205.00 205.0 2 25 2023-08-27 5.00 Area Outside Ward Rotorua District False 5.00
9996 l21030599 Home in Tauranga · ★4.95 · 2 bedrooms · 3 beds... Dee 2017-09-21 -37.684060 176.236860 Private room 4 $65.00 65.0 1 64 2023-02-17 4.95 Mount Maunganui-Papamoa Ward Tauranga City False 4.95
9997 l24721690 Rental unit in Wellington · 1 bedroom · 1 bed ... Bethany 2018-04-29 -41.301810 174.786020 Entire home/apt 2 $115.00 115.0 21 1 2018-09-04 5.00 Pukehīnau/Lambton Ward Wellington City False 5.00
9998 l6787826 Guest suite in Tauranga · ★4.92 · Studio · 1 bath Adelle 2015-06-11 -37.638210 176.184620 Entire home/apt 2 $160.00 160.0 2 142 2023-07-15 4.92 Mount Maunganui-Papamoa Ward Tauranga City False 4.92
9999 l41072501 Home in Auckland · ★3.83 · 1 bedroom · 1 bed ·... Harry 2019-12-26 -36.829150 174.616070 Private room 2 $95.00 95.0 1 6 2021-08-15 3.83 Waitākere Ward Auckland False 3.83

8772 rows × 18 columns

In [11]:
!jupyter nbconvert --output week_5_tutorial.html --to html "/content/drive/MyDrive/Colab Notebooks/export_week_5_tutorial.ipynb"
[NbConvertApp] Converting notebook /content/drive/MyDrive/Colab Notebooks/export_week_5_tutorial.ipynb to html
[NbConvertApp] Writing 1397376 bytes to /content/drive/MyDrive/Colab Notebooks/week_5_tutorial.html
In [18]:
!jupyter nbconvert --help
This application is used to convert notebook files (*.ipynb)
        to various other formats.

        WARNING: THE COMMANDLINE INTERFACE MAY CHANGE IN FUTURE RELEASES.

Options
=======
The options below are convenience aliases to configurable class-options,
as listed in the "Equivalent to" description-line of the aliases.
To see all configurable class-options for some <cmd>, use:
    <cmd> --help-all

--debug
    set log level to logging.DEBUG (maximize logging output)
    Equivalent to: [--Application.log_level=10]
--show-config
    Show the application's configuration (human-readable format)
    Equivalent to: [--Application.show_config=True]
--show-config-json
    Show the application's configuration (json format)
    Equivalent to: [--Application.show_config_json=True]
--generate-config
    generate default config file
    Equivalent to: [--JupyterApp.generate_config=True]
-y
    Answer yes to any questions instead of prompting.
    Equivalent to: [--JupyterApp.answer_yes=True]
--execute
    Execute the notebook prior to export.
    Equivalent to: [--ExecutePreprocessor.enabled=True]
--allow-errors
    Continue notebook execution even if one of the cells throws an error and include the error message in the cell output (the default behaviour is to abort conversion). This flag is only relevant if '--execute' was specified, too.
    Equivalent to: [--ExecutePreprocessor.allow_errors=True]
--stdin
    read a single notebook file from stdin. Write the resulting notebook with default basename 'notebook.*'
    Equivalent to: [--NbConvertApp.from_stdin=True]
--stdout
    Write notebook output to stdout instead of files.
    Equivalent to: [--NbConvertApp.writer_class=StdoutWriter]
--inplace
    Run nbconvert in place, overwriting the existing notebook (only
            relevant when converting to notebook format)
    Equivalent to: [--NbConvertApp.use_output_suffix=False --NbConvertApp.export_format=notebook --FilesWriter.build_directory=]
--clear-output
    Clear output of current file and save in place,
            overwriting the existing notebook.
    Equivalent to: [--NbConvertApp.use_output_suffix=False --NbConvertApp.export_format=notebook --FilesWriter.build_directory= --ClearOutputPreprocessor.enabled=True]
--no-prompt
    Exclude input and output prompts from converted document.
    Equivalent to: [--TemplateExporter.exclude_input_prompt=True --TemplateExporter.exclude_output_prompt=True]
--no-input
    Exclude input cells and output prompts from converted document.
            This mode is ideal for generating code-free reports.
    Equivalent to: [--TemplateExporter.exclude_output_prompt=True --TemplateExporter.exclude_input=True --TemplateExporter.exclude_input_prompt=True]
--allow-chromium-download
    Whether to allow downloading chromium if no suitable version is found on the system.
    Equivalent to: [--WebPDFExporter.allow_chromium_download=True]
--disable-chromium-sandbox
    Disable chromium security sandbox when converting to PDF..
    Equivalent to: [--WebPDFExporter.disable_sandbox=True]
--show-input
    Shows code input. This flag is only useful for dejavu users.
    Equivalent to: [--TemplateExporter.exclude_input=False]
--embed-images
    Embed the images as base64 dataurls in the output. This flag is only useful for the HTML/WebPDF/Slides exports.
    Equivalent to: [--HTMLExporter.embed_images=True]
--sanitize-html
    Whether the HTML in Markdown cells and cell outputs should be sanitized..
    Equivalent to: [--HTMLExporter.sanitize_html=True]
--log-level=<Enum>
    Set the log level by value or name.
    Choices: any of [0, 10, 20, 30, 40, 50, 'DEBUG', 'INFO', 'WARN', 'ERROR', 'CRITICAL']
    Default: 30
    Equivalent to: [--Application.log_level]
--config=<Unicode>
    Full path of a config file.
    Default: ''
    Equivalent to: [--JupyterApp.config_file]
--to=<Unicode>
    The export format to be used, either one of the built-in formats
            ['asciidoc', 'custom', 'html', 'latex', 'markdown', 'notebook', 'pdf', 'python', 'rst', 'script', 'slides', 'webpdf']
            or a dotted object name that represents the import path for an
            ``Exporter`` class
    Default: ''
    Equivalent to: [--NbConvertApp.export_format]
--template=<Unicode>
    Name of the template to use
    Default: ''
    Equivalent to: [--TemplateExporter.template_name]
--template-file=<Unicode>
    Name of the template file to use
    Default: None
    Equivalent to: [--TemplateExporter.template_file]
--theme=<Unicode>
    Template specific theme(e.g. the name of a JupyterLab CSS theme distributed
    as prebuilt extension for the lab template)
    Default: 'light'
    Equivalent to: [--HTMLExporter.theme]
--sanitize_html=<Bool>
    Whether the HTML in Markdown cells and cell outputs should be sanitized.This
    should be set to True by nbviewer or similar tools.
    Default: False
    Equivalent to: [--HTMLExporter.sanitize_html]
--writer=<DottedObjectName>
    Writer class used to write the
                                        results of the conversion
    Default: 'FilesWriter'
    Equivalent to: [--NbConvertApp.writer_class]
--post=<DottedOrNone>
    PostProcessor class used to write the
                                        results of the conversion
    Default: ''
    Equivalent to: [--NbConvertApp.postprocessor_class]
--output=<Unicode>
    overwrite base name use for output files.
                can only be used when converting one notebook at a time.
    Default: ''
    Equivalent to: [--NbConvertApp.output_base]
--output-dir=<Unicode>
    Directory to write output(s) to. Defaults
                                  to output to the directory of each notebook. To recover
                                  previous default behaviour (outputting to the current
                                  working directory) use . as the flag value.
    Default: ''
    Equivalent to: [--FilesWriter.build_directory]
--reveal-prefix=<Unicode>
    The URL prefix for reveal.js (version 3.x).
            This defaults to the reveal CDN, but can be any url pointing to a copy
            of reveal.js.
            For speaker notes to work, this must be a relative path to a local
            copy of reveal.js: e.g., "reveal.js".
            If a relative path is given, it must be a subdirectory of the
            current directory (from which the server is run).
            See the usage documentation
            (https://nbconvert.readthedocs.io/en/latest/usage.html#reveal-js-html-slideshow)
            for more details.
    Default: ''
    Equivalent to: [--SlidesExporter.reveal_url_prefix]
--nbformat=<Enum>
    The nbformat version to write.
            Use this to downgrade notebooks.
    Choices: any of [1, 2, 3, 4]
    Default: 4
    Equivalent to: [--NotebookExporter.nbformat_version]

Examples
--------

    The simplest way to use nbconvert is

            > jupyter nbconvert mynotebook.ipynb --to html

            Options include ['asciidoc', 'custom', 'html', 'latex', 'markdown', 'notebook', 'pdf', 'python', 'rst', 'script', 'slides', 'webpdf'].

            > jupyter nbconvert --to latex mynotebook.ipynb

            Both HTML and LaTeX support multiple output templates. LaTeX includes
            'base', 'article' and 'report'.  HTML includes 'basic', 'lab' and
            'classic'. You can specify the flavor of the format used.

            > jupyter nbconvert --to html --template lab mynotebook.ipynb

            You can also pipe the output to stdout, rather than a file

            > jupyter nbconvert mynotebook.ipynb --stdout

            PDF is generated via latex

            > jupyter nbconvert mynotebook.ipynb --to pdf

            You can get (and serve) a Reveal.js-powered slideshow

            > jupyter nbconvert myslides.ipynb --to slides --post serve

            Multiple notebooks can be given at the command line in a couple of
            different ways:

            > jupyter nbconvert notebook*.ipynb
            > jupyter nbconvert notebook1.ipynb notebook2.ipynb

            or you can specify the notebooks list in a config file, containing::

                c.NbConvertApp.notebooks = ["my_notebook.ipynb"]

            > jupyter nbconvert --config mycfg.py

To see all available configurables, use `--help-all`.

In [15]:
!apt-get install texlive texlive-xetex texlive-latex-extra pandoc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
pandoc is already the newest version (2.9.2.1-3ubuntu2).
texlive is already the newest version (2021.20220204-1).
texlive-latex-extra is already the newest version (2021.20220204-1).
texlive-xetex is already the newest version (2021.20220204-1).
0 upgraded, 0 newly installed, 0 to remove and 33 not upgraded.
In [ ]: