Data Cleaning and Visualisation Skills Every Analyst Needs
Data cleaning means fixing problems in raw data before analysis: missing values, duplicate rows, wrong data types, inconsistent labels and outliers. Visualisation means choosing charts that show the answer clearly and honestly. Together they decide whether an analysis can be trusted.
Topic: Data Analytics & Data Science in AI & Data · Certification preparation
Quick answer: Data cleaning means fixing problems in raw data before analysis: missing values, duplicate rows, wrong data types, inconsistent labels and outliers. Visualisation means choosing charts that show the answer clearly and honestly. Together they decide whether an analysis can be trusted. Analysts clean data in Excel and Power Query, SQL or Python with pandas, and they visualise in Excel, Power BI, Tableau or Python libraries such as Matplotlib. Learn a repeatable cleaning checklist, match each question to the right chart type, label everything, and never rely on colour alone to carry meaning.
Key takeaways
- Clean data before you analyse it, and record every change you make.
- Handle missing values deliberately; deleting rows can bias results.
- Pick charts by the question: comparison, trend, distribution or relationship.
- Label axes and units, start bar charts at zero, and keep charts simple.
- Design for accessibility: do not use colour as the only signal.
Table of Contents
- What Problems Does Data Cleaning Fix?
- How Do You Clean Data With pandas?
- Can You Clean Data Without Code?
- Which Chart Fits Which Question?
- What Makes a Chart Clear and Honest?
- How Can You Practise These Skills?
- References
What Problems Does Data Cleaning Fix?
| Problem | Example | Common fix |
|---|---|---|
| Missing values | Blank city or price | Investigate cause; fill, flag or exclude with a reason |
| Duplicates | Same order entered twice | Remove exact or key-based duplicates |
| Wrong types | Dates stored as text | Convert to date or number types |
| Inconsistent labels | Pune, pune, PUNE | Standardise case and spelling |
| Outliers | Quantity of 99999 | Check source; correct, cap or keep with a note |
| Extra spaces | Trailing spaces in names | Trim whitespace |
How Do You Clean Data With pandas?
The pandas guide on working with missing data and the reference for drop_duplicates explain each step. A short, safe example:
import pandas as pd
df = pd.read_csv('orders.csv')
print(df.isna().sum()) # count missing values per column
df = df.drop_duplicates(subset=['order_id'])
df['city'] = df['city'].str.strip().str.title()
df['order_date'] = pd.to_datetime(df['order_date'], errors='coerce')
df['amount'] = pd.to_numeric(df['amount'], errors='coerce')
df['amount_missing'] = df['amount'].isna() # flag rather than silently drop
print(df.describe())
Using errors='coerce' turns unparseable values into missing values, so check how many appear afterwards instead of assuming the conversion worked.
Can You Clean Data Without Code?
Yes. Power Query, built into Excel and Power BI, lets you remove duplicates, change types, trim text, split columns and fill blanks through menus. Each step is recorded, so the cleaning repeats automatically when new data arrives. SQL can also clean data with functions such as TRIM, COALESCE and CAST.
Which Chart Fits Which Question?
| Question | Good chart | Avoid |
|---|---|---|
| Compare categories | Bar chart, sorted | 3D bars |
| Show a trend over time | Line chart | Pie chart |
| Show a distribution | Histogram, box plot | Only an average |
| Show a relationship | Scatter plot | Two unrelated axes |
| Show part of a whole | Stacked bar, simple pie with few slices | Pie with many slices |
The NIST e-Handbook graphical techniques section explains histograms, box plots and scatter plots in depth.
What Makes a Chart Clear and Honest?
- Use a title that states the finding, not just the metric.
- Label axes with units; start bar chart axes at zero.
- Remove clutter such as heavy gridlines and decorative effects.
- Highlight the one series that matters and grey out the rest.
- Do not use colour as the only way to show meaning, in line with WCAG 2.2 success criterion 1.4.1; add labels or patterns.
Tableau publishes visual best practices, and Matplotlib documents chart options for Python users.
How Can You Practise These Skills?
Take a messy public dataset, write down every problem you find, fix it in both Power Query and pandas, then build three charts that answer three different questions. Compare results to confirm both cleaning methods agree. Our guide to online data analytics training and the overview of data analytics careers show where these skills fit. For guided practice, ask about data analytics training.
References
Frequently Asked Questions
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Wow
0
Sad
0
Angry
0