Data Collection and Cleaning: Sources, Formats and Scrubbing
19 İyul 2026·Updated: ·⏱ ≈9 min·👁 112 views

Contents
- 4 key sources of data
- What formats does data come in?
- Structured and unstructured data
- Scrubbing: cleaning your data
- Sampled and first-party and third-party data
- How reliable are your data sources?
- Frequently asked questions (FAQ)
- The takeaway: good analysis starts with clean data
- Dirty data vs clean data: a practical example
- A practical workflow: data collection and cleaning
The first two stages of the OSEMN framework, Obtain and Scrub, are the foundation of every successful data project. If you start with inaccurate or incomplete data, all your later analysis could lead to the wrong conclusions. This article explains where to find data, the formats it comes in and how to clean it. By considering sources, formats and quality as you collect data, you can plan the cleaning work that follows.
This article is part of the what is data analytics is a continuation of the guide.
4 key sources of data
When investigating a question about data, you can draw on a range of sources. They fall into four groups:
1. Free, open data sources
Government websites and open repositories provide social and economic data free of charge, including population demographics, household incomes and education. Examples include Eurostat (the European Union’s official statistics office), the OECD (Organisation for Economic Co-operation and Development), the World Bank, the UN and the US Census Bureau. These sources are generally considered reliable, but you should check when the data was last updated.
2. Company-specific data
This is data collected by the company you work for that is not publicly available. For example, it could come from a system that records all sales or from Google Analytics, which is used to track website activity. It also includes data collected by mobile operators about their customers’ calls and internet use.
3. Subscription databases
Companies subscribe to databases relevant to their industry. Examples include Nielsen, which tracks media use, such as the TV channels people watch and the websites they visit, and Bloomberg Terminal, a paid source of financial information for financial services companies. Nielsen data, for example, can help a TV channel show advertisers how many sports fans it reaches.
4. Data you collect yourself
If the data you need is not available, you’ll need to collect it yourself through a questionnaire, interviews or observation of user behaviour. SurveyMonkey and Google Forms are easy-to-use tools with ready-made templates for this.
What formats does data come in?
Data is not just numbers. It can also be text, images, video or audio. Here are three common types:
Numeric data
Quantitative data is expressed in numbers and can be measured: age, income, sales figures and share prices, for example. It is often stored in tabular format, such as a .csv file made up of rows and columns. This structure makes it quick to process large amounts of data by sorting and filtering.
Text data
Free-form text data is usually unstructured and consists of letters and words. Sources include social media posts, emails, posts on X, blog posts and customer reviews. It is often analysed using natural language processing (NLP). Sentiment analysis, for example, can help identify how customers feel about a product.
Visual data
Visual data consists of images and video. Examples include product images used for quality control in manufacturing, road footage captured by self-driving car cameras to train machine learning algorithms, and medical images. Depending on the purpose, visual data can sometimes be more useful than numerical data.
Structured and unstructured data
One important distinction between data formats is whether data is structured or unstructured. Structured data follows a predefined format, such as a table of rows and columns. It can contain numbers and text fields that you can sort and filter, or use to calculate totals. Unstructured data does not fit this format: it includes free-form text, images, video and audio. It is harder to work with and often requires specialised methods, such as NLP or image recognition.
Many real-world projects involve both types. In an e-commerce shop, for example, sales figures are structured data, while the text of customer reviews is unstructured. A good analyst combines the two: numbers help explain what happened, while reviews can help explain why. Knowing how your data is structured determines how you should process it.
Scrubbing: cleaning your data
The second stage, scrubbing, turns raw, “dirty” data into clean data. Dirty data may contain duplicate records, inconsistent formats, missing values or incorrect information. Cleaning removes unnecessary duplicates, standardises formats and deals with missing or incorrect values in a way that suits your needs. The cleaning process can be divided into four key tasks:
- Remove duplicates: eliminate unnecessary copies of the same record.
- Format records: create a consistent structure, for example, by converting all measurements to the same system.
- Handle missing values: decide what to do with empty cells.
- Check for incorrect values: identify inaccurate or unrealistic information.
Why does this matter so much? Errors in your data can undermine your research and analysis, lead to incorrect conclusions or even prevent a model from working at all. In the example of Anna’s boutique, some sizes were listed as “small/medium/large”, others used US numeric sizes, and some used Italian sizes. She converted them all to a single system. Taking the time to clean your data can prevent problems later on.
Removing duplicates
When the same record appears more than once in a dataset, it can distort your results. For example, counting the same customer twice makes your customer total look higher than it is. Identifying and removing these duplicates is the first step towards working with clean data.
Formatting records
Data should use consistent formats. Dates should follow the same format (for example, DD/MM/YYYY), text should use consistent capitalisation, and measurements should follow the same system. If differences in format and spelling are not resolved, software may treat the same information as different values. For example, “Baku” and “baku” could be treated as two separate values.
Handling missing values
Some cells may be empty. What should you do with them? Options include deleting the row, filling the gap in a suitable numeric field with the mean or median, or entering a special “unknown” value. The right choice depends on the type of data, why values are missing and how many are missing.
Checking for incorrect values
Some values may be wrong: an age of 250, a negative product price or a future date for a sale that has already happened. Identify these anomalies, check them against the source and correct any confirmed errors. Otherwise, they could lead to inaccurate analysis.
Sampled and first-party and third-party data
There are two more concepts to understand when collecting data. The first is sampled data. Sometimes you examine a sample that represents the whole population rather than the entire population itself. This speeds up the work, but the results can be misleading if the sample is not large enough or representative. The second concept is the type of data based on its source. First-party data is collected directly from your own customers and users. Third-party data is collected by external organisations and made available to others. Accuracy depends on the source and collection method, and privacy requirements apply to both types. Understanding these distinctions is essential when choosing data for your analysis.
At the start of a project, plan how you will obtain the data. Are free sources available? What data can your company access? If the data you need is unavailable, how will you collect it? Planning ahead makes every later stage easier.
How reliable are your data sources?
When collecting data, it is important to assess its reliability: is the source trustworthy, is the data up to date, and how was it collected? Sources from governments and international organisations are usually reliable. When obtaining data from an external source, check a sample first and find out how it was collected. Otherwise, it may be poor quality or pose privacy risks.
Frequently asked questions (FAQ)
What are the best free data sources?
Eurostat, the OECD, the World Bank, the UN and the US Census Bureau are reliable, free sources of social and economic data.
Are scrubbing and cleaning the same thing?
Yes. Scrubbing and data cleaning refer to the same process: turning dirty data into clean data.
What is CSV?
Comma-Separated Values: a simple tabular file format that stores text and numeric values in rows, with fields separated by commas.
Why is data cleaning so important?
Dirty data can undermine your analysis, lead to incorrect conclusions or even prevent a model from working. Taking the time to clean it helps prevent bigger problems later.
How is text data analysed?
It is often analysed using natural language processing (NLP). Sentiment analysis, for example, can help identify whether the sentiment in customer reviews is positive, negative or neutral.
What is the difference between structured and unstructured data?
Structured data follows a defined format, such as rows and columns, and can contain numbers and text fields. Unstructured data, such as free-form text, images and video, does not fit this format and requires specialised methods to process.
When is sampled data used?
When processing all the data would take too long or cost too much, you can use a representative sample. It needs to be large enough and representative, or the results may be misleading.
How should you handle missing values?
Options include deleting the row, filling the gap in a suitable numeric field with the mean or median, or entering an “unknown” value. The right choice depends on the type of data, why values are missing and how many are missing.
What are the 4 main sources of data?
Free, open data sources (Eurostat, OECD), company-specific data, subscription databases (Nielsen, Bloomberg) and data you collect yourself (surveys, interviews).
The takeaway: good analysis starts with clean data
The collection and cleaning stages may not seem especially exciting: they may not feel as “smart” as building a model or as “beautiful” as visualisation. But they are the foundation of every reliable analysis. If you collect data from an inaccurate or biased source, or fail to clean it properly, everything that follows can lead to the wrong conclusions, however skilfully it is done. That is why experienced analysts pay close attention to these stages.
A practical rule: for every project, plan where you will find the data, check that the source is reliable, understand the format and set aside enough time to clean it. This habit will save you from many problems in the long run and help you trust your analysis. Remember: even the most sophisticated model can produce the wrong results without clean data.
If you need to bring your channels and budget together in one plan, my media planning and strategy service explains how I approach this work.
Dirty data vs clean data: a practical example
Let’s look at a concrete example. In a dirty customer dataset, the same customer may be listed twice (a duplicate), dates may use different formats (01/02/2026 and 2026-02-01), some cells may be empty (a missing value), and one customer’s age may be unrealistic, such as “250” (an incorrect value). In the clean version, unnecessary duplicates are removed, dates are standardised, empty cells are handled appropriately and incorrect values are corrected. These four problems correspond to the four scrubbing tasks.
A large part of a data analyst’s work may take place at this stage. Some estimates suggest that analysts spend most of their time cleaning data, because data quality directly affects the reliability of the stages that follow. It may seem “boring”, but it is the foundation of every reliable analysis.
A practical workflow: data collection and cleaning
What do these two stages look like in a project? Suppose you are investigating a drop in traffic to your website. First, collect the data: export website data from Google Analytics and, if needed, add customer feedback from a survey. Then clean it: remove duplicate export records, standardise dates, handle empty cells and check suspicious values, such as unexpectedly long sessions. Only then are you ready to explore the data.
These two stages may seem boring, but they are the foundation of all analysis. Experienced analysts know that a significant share of their working time may be spent here, and that time is well spent. Starting with clean, reliable data makes the later stages of research and modelling easier and produces more reliable results.
Next step: learn how to explore clean data and build a model.
👉 Next article: data exploration and modelling
Topic: Data Analytics: posts in this topic →

About the author
Tural Rəhimov
Digital Marketing Manager: UM Azerbaijan
Digital marketing manager at Universal McCann (UM Azerbaijan). Experienced in Google Ads, Meta Ads, TikTok Ads and media planning. I help brands grow online.
More about me →Need digital marketing support for your business?
Let's talk: I can help with everything from strategy to ad management.