Original Automotive Analytics Case Study

German EV Market Analysis

Analysing battery electric vehicle registrations, manufacturer competition, model performance and EV portfolio expansion in Germany between 2020 and 2026

Python • Pandas • Matplotlib • Seaborn • KBA Data • Data Cleaning • Data Validation • Market Analysis • Competitive Analysis • Exploratory Data Analysis

This case study examines Germany's battery electric vehicle market using official registration records from the German Federal Motor Transport Authority (KBA). The registration data was enriched with a verified EV model mapping database containing canonical model names, market-entry information, model status, mapping confidence and official manufacturer sources.

Project Overview

Business Area

Automotive analytics, electric mobility and competitive market intelligence

Cleaned Dataset

3,334 unique EV registration records after removing 40 exact duplicates

Market Coverage

Germany's leading EV manufacturers, verified model series and reporting years from 2020 to 2026

Main Tools

Python, Pandas, Matplotlib, Seaborn, Excel and official KBA data

Business Problem

Germany's transition toward electric mobility has intensified competition among established automotive manufacturers and dedicated electric vehicle companies. Registration totals alone do not explain which manufacturers are leading, which models are driving adoption or how product portfolios have evolved.

This project transforms official registration data into business insights that can support market monitoring, product strategy, competitive benchmarking and data-driven decision-making.

Key Business Question

How has Germany's battery electric vehicle market developed between 2020 and 2026, and which manufacturers, models and vehicle segments have contributed most strongly to its growth?

Dataset

The project uses an original analysis-ready workbook created by merging KBA registration records with a verified electric vehicle model mapping database. The enrichment process standardised model identities and added official manufacturer references, launch information and confidence levels.

Registration Metrics

Total registrations and BEV registrations by manufacturer, model series, segment and reporting year

Verified Model Data

Canonical EV names, production or reveal start, German market year and model status

Data Quality Fields

Mapping confidence, merge status, verification notes and official manufacturer source

Analysis Type

Descriptive, exploratory, time-series, competitive and product portfolio analysis

Analytical Process

The project follows a structured workflow from source preparation through market interpretation and strategic recommendations.

DB
STEP 01

Prepare

Loaded the merged KBA and verified EV model database.

STEP 02

Inspect

Reviewed structure, types, missing values and statistics.

STEP 03

Clean

Investigated quality issues and removed exact duplicates.

Σ
STEP 04

Analyze

Examined trends, brands, models, share and segments.

STEP 05

Compare

Evaluated growth and competitive performance.

STEP 06

Recommend

Converted findings into business recommendations.

Behind the Analysis

Open each stage to explore the Python workflow, screenshots and reasoning.

STAGE 01Set Up and Load the DatasetLibraries were imported and the merged EV workbook was loaded.+

Preparing the Python Environment

ev_market_analysis.py
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns

file_path = "/kaggle/input/datasets/ashwinraphel/german-ev-registration/German EV Registration Database 20202026.xlsx"

df = pd.read_excel(
    file_path,
    sheet_name="Merged Monthly EV Data"
)

Import Libraries

Python libraries imported

Load Dataset

German EV workbook loaded
STAGE 02Understand the DatasetStructure, records, data types, missing values and numerical distributions were reviewed.+

Inspecting Dataset Structure and Quality

inspect_dataset.py
df.head()
df.info()
df.isnull().sum()
df.shape

missing = (
    df.isnull()
      .sum()
      .sort_values(ascending=False)
)

df.describe()
df.sample(10)

Dataset Preview

Dataset preview

Dataset Information

Dataset information

Initial Missing-Value Check

Initial missing values

Dataset Shape

Dataset shape

Data Types

Dataset data types

Sorted Missing Values

Sorted missing values

Statistical Summary

Statistical summary

Random Sample

Random sample
STAGE 03Validate and Clean the DataNegative-value and duplicate checks were completed before creating the cleaned dataset.+

Resolving Data-Quality Issues

01

Validate Values

No negative BEV or total registration values were found.

02

Identify Duplicates

The initial check detected 40 exact duplicate records.

03

Inspect Records

Duplicate rows were reviewed before removal.

04

Create Clean Dataset

The final dataset contained 3,334 unique rows and zero duplicates.

Data Quality Validation

Data quality checks

Investigate Duplicate Records

Duplicate records investigated

Remove and Validate Duplicates

Duplicates removed and verified
STAGE 04Explore the German EV MarketTrends, manufacturers, models, market share and vehicle segments were analysed.+

Market Overview and Product Performance

Registration Trend by Reporting Year

German BEV registration trend
Observation

Registrations increased strongly through 2023, declined in 2024 and recovered in 2025.

Business Insight

The long-term direction remains positive, although policy, pricing and supply conditions can produce major fluctuations.

Annual BEV Registrations

Annual BEV registrations
Observation

2025 recorded the highest total in the available dataset.

Business Insight

The 2025 recovery suggests renewed market demand after the 2024 contraction.

Top EV Manufacturers

Top ten EV manufacturers
Observation

Volkswagen achieved the highest cumulative registrations, followed by Tesla and BMW.

Business Insight

Established German brands and dedicated EV manufacturers both hold strong positions.

Top EV Models

Top ten EV models
Observation

The Volkswagen ID.3, Tesla Model Y, Tesla Model 3 and ID.4/ID.5 family were among the strongest performers.

Business Insight

A limited number of high-volume models contributed substantially to overall EV adoption.

Manufacturer Market Share

EV manufacturer market share
Observation

Volkswagen held the largest cumulative share, with Tesla in second place.

Business Insight

The market has a clear leader but remains distributed across several strong competitors.

Vehicle Segment Analysis

BEV registrations by segment
Observation

SUVs generated the highest volume by a wide margin.

Business Insight

SUV demand is central to EV product strategy, while compact and small-car segments remain important.

STAGE 05Compare Competitive PerformanceYoY change, manufacturer rankings, heatmap patterns and growth were evaluated.+

Advanced Competitive Analysis

Year-over-Year Growth

YoY growth table
YoY growth chart
Observation

Growth was strongest in 2021, declined in 2024 and recovered in 2025.

Business Insight

Market expansion should be evaluated alongside incentives, product cycles and economic conditions.

Top 10 Manufacturers by Total Registrations

Top ten manufacturers table
Top ten manufacturers chart

Top 10 Manufacturer Heatmap

Heatmap source data
Manufacturer heatmap
Observation

Volkswagen maintained consistently high annual volumes while other brands showed different performance cycles.

Business Insight

The heatmap distinguishes consistent leaders from brands whose results depend more strongly on individual model cycles.

Fastest-Growing Manufacturers

Fastest-growing manufacturers table
Fastest-growing manufacturers chart
Observation

Several manufacturers recorded substantial increases compared with the first reporting year.

Business Insight

Growth can indicate successful launches, stronger acceptance and broader portfolio coverage.

STAGE 06Evaluate Product StrategyNew-model introductions and manufacturer EV portfolio size were examined.+

Model Introductions and Portfolio Expansion

New EV Models Introduced by Year

New EV models table
New EV models chart
Observation

Model introductions accelerated particularly around 2020, 2021 and 2024.

Business Insight

Increasing model availability expands consumer choice and intensifies competition.

Top 10 Manufacturers by EV Portfolio Size

EV portfolio table
EV portfolio chart
Observation

Hyundai, Mercedes-Benz, Volkswagen and BMW had some of the broadest portfolios.

Business Insight

A broad portfolio helps address more customer needs, but leadership also depends on pricing, technology and demand.

Visualizations

The principal charts explain growth, competitive position, model performance, segment demand and product strategy.

01

Registration Trends

Shows how BEV registrations changed from 2020 to 2026.

02

Manufacturer Ranking

Identifies the ten manufacturers with the highest cumulative registrations.

03

Model Performance

Ranks the most successful verified EV models.

04

Market Share

Compares manufacturer contributions to cumulative registrations.

05

Segment Demand

Reveals the importance of SUVs and other vehicle categories.

06

Competitive Evolution

Compares annual manufacturer performance and growth.

07

Model Introductions

Examines how the supply of verified EV models expanded.

08

Portfolio Strategy

Compares the breadth of manufacturer EV portfolios.

Key Findings

The analysis revealed clear patterns in market growth, competition, model success and consumer preferences.

Germany's BEV market expanded substantially.

Registrations increased strongly from 2020, despite a 2024 decline and incomplete 2026 data.

Volkswagen achieved the strongest cumulative position.

It recorded the highest overall registrations and the largest market share.

Tesla remained a major competitive force.

The Model Y and Model 3 were among the strongest-performing EV models.

SUVs dominated EV registrations.

The SUV category generated substantially more registrations than other segments.

New-model availability increased competition.

Verified market introductions expanded strongly during key electrification years.

Portfolio size did not guarantee leadership.

Success also depended on pricing, positioning and high-performing flagship models.

Business Recommendations

The findings support product, pricing, infrastructure and competitive intelligence strategies.

01

Strengthen High-Demand Segments

Continue investing in competitive electric SUVs while maintaining affordable compact options.

02

Balance Breadth with Performance

Evaluate whether each model contributes meaningful volume rather than focusing only on portfolio size.

03

Monitor Competitor Growth

Track annual registrations, market share and launches to identify threats and opportunities.

04

Improve Price and Charging Competitiveness

Combine attractive pricing with practical range, charging speed and infrastructure access.

05

Use Official Data for Planning

Refresh the analysis regularly to support strategy, forecasting and policy decisions.

Executive Summary

This project analysed Germany's BEV market using official KBA registration data enriched with a verified EV model database. The original dataset contained 3,374 records across 17 variables. After removing 40 exact duplicates, the cleaned analytical dataset contained 3,334 unique records.

Volkswagen held the highest cumulative market position. Tesla, BMW, Mercedes-Benz, Audi, Škoda and Hyundai also demonstrated significant presence. The Volkswagen ID.3, Tesla Model Y, Tesla Model 3 and Volkswagen ID.4/ID.5 family were among the strongest-performing models.

SUVs accounted for the largest registration volume. Model availability and manufacturer EV portfolios continued to expand, although portfolio size alone did not guarantee market leadership.

Project Limitations

!

2026 may contain partial-year information.

It should not be compared directly with complete calendar years.

!

Some mappings require caution.

Medium- and low-confidence mappings may contain ambiguity or aggregate categories.

!

The project focuses on BEVs.

PHEVs, hybrids and internal-combustion vehicles are outside the main scope.

!

External drivers were not modelled directly.

Incentives, prices, charging access and economic conditions may influence trends.

Skills Demonstrated

PythonPandasMatplotlibSeabornExcelData CleaningData ValidationData IntegrationExploratory Data AnalysisTime-Series AnalysisMarket Share AnalysisCompetitive AnalysisPortfolio AnalysisData VisualizationBusiness InsightsData Storytelling