Turn an Excel Worksheet Into an EDA Report With 3 Lines of Python
Three lines of Python produce a full exploratory data analysis report from a spreadsheet: distributions, missing values, correlations and per-column warnings, rendered as an HTML page. The library was called pandas-profiling in the video and is now fg-data-profiling. It is a good first step on a dataset you have never seen before.
Update (November 2026): pandas-profiling from the video is now fg-data-profiling (it was ydata-profiling in between), so install fg-data-profiling and import from data_profiling; I tested the code below with version 4.20.
Why a profiling report
A new dataset raises the same questions every time: which values are missing, how they are distributed, and which columns move together. In Excel you answer them with filters, pivot tables and charts, one column at a time. A profiling report answers all of them at once.
My example is the Melbourne housing snapshot from Kaggle, a table of house sales with price, rooms, land size, building area and location.

Create the report
You need Python with pandas, openpyxl for Excel files, and fg-data-profiling. Install them from the command prompt:
pip install pandas
pip install openpyxl
pip install fg-data-profiling
If you still have an old ydata-profiling install, remove it first with pip uninstall ydata-profiling. On a fresh environment, ydata-profiling 4.18 also failed in my test with No module named 'pkg_resources', which is one more reason to switch.
Then the script itself. Import pandas and the report class:
import pandas as pd
from data_profiling import ProfileReport
Load the data into a DataFrame:
df = pd.read_csv('melb_data.csv')
The Kaggle dataset comes as a CSV. For your own Excel worksheet, read it with df = pd.read_excel('your_file.xlsx', sheet_name='Sheet1') instead. Everything after this line stays the same.
Create the report and save it as an HTML file:
profile = ProfileReport(df, title="EDA House Prices")
profile.to_file('EDA_Houseprices_Analysis.html')
Large sheets can take a while. ProfileReport(df, minimal=True) skips the heavier calculations.
Read the report
The report opens in any browser. Its overview lists the number of rows and columns, duplicate rows and missing cells, plus warnings such as high cardinality, skewed columns or strong correlations.

Each column gets its own block with distinct values, missing values, zeros and summary statistics. Numeric columns show a histogram, categorical columns a bar chart of their most common values. A correlations section shows how variables such as price and the number of rooms relate.

The missing values section shows which columns need attention. In the housing data, BuildingArea is missing in 47.5% of the rows and YearBuilt in about 40%.

Once the report tells you what is in the data, the next step is usually exploring it visually. PyGWalker gives you a drag-and-drop, Tableau-style view of the same DataFrame, and my real-world data analysis tutorial with pandas and Plotly shows how to answer concrete questions from there.
