Project 02 · Data analytics

Airbnb Analysis in London

✅ published data: 2025

Exploratory analysis of Airbnb accommodation listings in London, using September 2025 data. It compares prices by accommodation type and neighbourhood, examines minimum stays and availability, and classifies listings by their relative price within each category.

Python
Pandas
Plotly
Airbnb
Data analysis

CONTEXT AND OBJECTIVE

This project studies price differences between Airbnb accommodation listings in London. The comparison separates accommodation types to interpret prices within groups with similar characteristics and measure their spread. On that basis, the analysis examines variation between neighbourhoods and its relationship with minimum nights and availability.

The September 2025 file from Inside Airbnb includes nightly price, accommodation type, neighbourhood, coordinates, minimum stay and annual availability. It also provides review counts and dates, monthly review frequency and listings per host. These fields support price comparisons by category and neighbourhood, the study of stay conditions, and their relationship with availability and recent activity.

Medians compare typical prices, while percentiles show how much they vary within each group. This information is used to study accommodation types, neighbourhoods and stay conditions. A relative classification places each listing among the low, central or high prices within its category.

DATA CLEANING

DATA QUALITY AND A COMPARABLE DATASET

The source file contains 96,870 listings. Preparation with Pandas converts date and numeric fields, checks amounts and selects records with comparable conditions. Four quality and activity criteria define the analytical dataset.

  • Price above zero to analyse valid nightly values.
  • Last review after 14 September 2023 to prioritise listings with recent activity.
  • Minimum stay below 90 nights to focus the analysis on the selected supply.
  • Annual availability above zero to include listings with days declared available.

These checks leave 44,019 accommodation listings, approximately 45% of the original file. The selection focuses the analysis on listings meeting conditions for price, recent activity, minimum stay and availability. Prices and characteristics are therefore compared using consistent selection criteria.

Extreme prices receive specific treatment in the visualisations. Box plots use percentile-based limits, and some views omit the top 1% of each category to improve readability. In charts created with Plotly, histograms group the upper tail, and a logarithmic scale supports comparisons of wide distributions. The analytical dataset retains its records, and each chart applies its own presentation criteria.

ANALYSIS AND RESULTS

PRICES BY ACCOMMODATION TYPE

Entire homes and apartments have a median nightly price of 167 pounds. For private rooms, the median is 59 pounds. The difference is close to threefold. These two types account for almost all the analysed supply, while hotel rooms and shared rooms have fewer listings.

Price ranges also differ. For entire homes, the middle half of listings lies between 119 and 246 pounds per night. For private rooms, that range is 45 to 79 pounds. The comparison shows that accommodation types differ both in typical price and in price spread.

DIFFERENCES BETWEEN NEIGHBOURHOODS

Prices also vary between neighbourhoods. Camden has a median close to 155 pounds per night, while Bexley is around 66 pounds. To interpret that difference, the analysis also considers how many listings in each neighbourhood are entire homes and how many are private rooms.

The heatmap compares median prices by neighbourhood and accommodation type. Each cell retains its price in pounds, while its colour shows its relative position within the category. The scale is calculated separately for each type using its minimum and maximum median.

NORMALISED PRICE SCALE
I=\frac{M-M_{\min}}{M_{\max}-M_{\min}}

M is the median price. Index I ranges from 0 to 1 and is calculated separately for each accommodation type. A higher value indicates a neighbourhood with a relatively high median within that type.

The median is also compared by distance from Charing Cross, grouped into one-kilometre intervals to examine differences relative to central London.

MINIMUM STAYS AND AVAILABILITY

To study listing conditions, median prices are compared across two sets of intervals.

  • Minimum stay: 1 to 2, 3 to 6, and 7 to 89 nights.
  • Annual availability: 1 to 30, 31 to 90, 91 to 180, and 181 to 365 days.

These comparisons show how median price changes between listings with different stay requirements and available days. The results describe associations within the published supply. Availability refers to the days each host declares available during the year.

RELATIVE PRICE CLASSIFICATION

The classification uses the 25th and 75th price percentiles for each accommodation type. The thresholds therefore adapt to differences between entire homes, private rooms and the other categories.

PRICE THRESHOLDS BY ACCOMMODATION TYPE
\text{Category}(p)=\begin{cases}\text{Low price},&p\le P_{25}\\\text{Stable},&P_{25}<p<P_{75}\\\text{High price},&p\ge P_{75}\end{cases}

p is the nightly price, and percentiles are calculated for each accommodation type.

Almost half of the listings fall within the stable range, while the cheap and expensive categories have similar shares. Comparing the composition of these groups by neighbourhood distinguishes areas with different price profiles within each accommodation type.

DELIVERABLES AND LESSONS LEARNED

The analysis shows differences in price and spread between entire homes and private rooms. When comparing neighbourhoods, it considers which accommodation types predominate in each area and how prices relate to stay conditions and availability.

The relative classification shows how cheap, stable and expensive listings are distributed across neighbourhoods, always within the same accommodation type. This reveals different supply profiles in London through prices and listing conditions.