Careers and getting hired · Beginner · 16 min
Build a data analyst portfolio with real datasets
By Padding · Updated 18 Nov 2026
Any notebook or BI tool · November 2026
You will have one analyst portfolio project written up, from a manager's question to a recommendation with its limits, and two more planned, each built on an open dataset whose licence you have linked.
On this page
Most junior analyst portfolios look the same: a notebook full of charts about the Titanic, house prices or a film database, ending with "the data shows some interesting patterns". A hiring manager reads that and learns that you can run a charting library. They do not learn whether you can do the part of the job they pay for, which is taking a vague question from someone busy, finding the numbers that answer it, and telling them what to do next in words they understand.
This tutorial builds a portfolio around that part of the job. Each project starts from a question a manager would ask, uses an open dataset you are allowed to reuse, and ends in a recommendation with its limits stated plainly. You will finish with one project fully written up and two more planned on a single page, so you can build them over the following weeks.
The example follows Wanjiru, a maths teacher in Nairobi moving into data analysis, from the portfolio projects tutorial. Her adverts asked most for SQL, spreadsheets, a dashboard tool, cleaning messy data and presenting findings. Use your own adverts and your own questions; hers are there to show the level of detail.
Step 1 · Write three questions a manager would ask
Open a document called "Analyst portfolio plan". Under a heading "Questions", write three questions that a real person in a real job would want answered. Each one needs three parts:
- Who is asking. A role, not "people": a county education officer, a clinic manager, a shop owner, a city transport planner.
- What they must decide. The choice the answer will feed. Where to send extra teachers, which day to add a shift, which product to stop stocking.
- The question itself, in their words. Short, with no technical terms. "Which counties lost the most secondary pupils between Form 1 and Form 4?" is a manager's question. "Exploratory analysis of enrolment data" is not.
Check each question against the decision. If the answer could not change what the person does, rewrite the question until it could. "How has enrolment changed?" becomes "Which five counties should get the new retention programme first?"
Spread the three questions across your target skills. Wanjiru wrote:
- A county education officer deciding where to place a pupil-retention programme: "Which counties lose the most pupils between the first and last year of secondary school?" (SQL, cleaning, presenting findings)
- A shop owner deciding when to stock up on staples: "Which staple foods have risen fastest in price over the past year, and in which months do prices jump?" (spreadsheets, a dashboard). Her first idea was her own school's fee payments, but that is private data about pupils that she could not publish, so she swapped it for open price data: the Kenya National Bureau of Statistics publishes consumer price figures every month, and market food price datasets for Kenya are on open data portals.
- A health programme lead deciding where to run a vaccination catch-up: "Which regions are furthest below the target for childhood vaccination, and has the gap grown?" (SQL, comparing sources)
Check it worked
Your "Questions" section has three questions. Each one names who is asking and the decision they face, is written without technical words, and has an answer that could change that decision. Between them they cover at least three of the skills your target adverts ask for most.
Step 2 · Find a dataset for each question and log its licence
A portfolio is published work, so you need data you are allowed to publish an analysis of. For each question, look for an open dataset in this order:
- Your national statistics office. The Kenya National Bureau of Statistics, Nigeria's National Bureau of Statistics, Statistics South Africa, and their equivalents elsewhere publish census, survey, price and labour data. They know their own country better than any international source.
- A ministry, regulator or city open data portal. Education, health, transport and budget data often sit here, broken down by county, district or ward.
- International bodies. The World Bank publishes indicators for almost every country; its datasets are provided under the Creative Commons Attribution 4.0 licence (CC BY 4.0) unless a dataset is labelled otherwise. United Nations agencies and the World Health Organization publish their own data with their own terms.
For every dataset you consider, add a row to a "Data log" table in your plan with these columns:
- Name and publisher, exactly as the source gives them.
- Link to the page you downloaded from, not only the file.
- Licence, with a link to its text. For CC BY 4.0, that means giving credit, linking the licence and saying what you changed.
- Date downloaded and file size.
- What one row means. "One county, one year, one school level." If you cannot write this sentence, you do not understand the dataset yet.
Some publishers do not show a clear licence. Look for a "terms of use", "data access" or "copyright" page. If you still cannot find one, write "No licence found; terms page: (link)" and either email the publisher to ask or choose another dataset. Do not guess. A reviewer who checks will notice, and in a real job the same carelessness can get a report pulled.
Prefer data with real mess in it: missing years, renamed regions, totals that do not add up, a footnote that changes a definition. Handling that is a skill adverts ask for. A dataset that was cleaned for a course teaches a reviewer nothing.
In Nigeria and across Africa
Many national bureau sites publish tables as PDF or Excel files rather than as clean downloads, and some change their web addresses between releases. Save your own copy of the original file as soon as you download it, and note its date, so your analysis still works when the link moves. Turning a PDF table into tidy data is a real analyst task; say in your write-up that you did it and how you checked the numbers.
If you are on prepaid mobile data, check the file size before you download, and grab a filtered extract (one country, a few indicators) when the site offers one instead of the full database. Do the heavy work once and keep the result locally.
Check it worked
Your "Data log" has at least one dataset for each of the three questions. Every row has a link to the source page, a licence linked to its text (or a clear "No licence found" note with a terms link), a download date, and a sentence saying what one row means.
Step 3 · Turn the first question into an analysis plan
Pick the question you can answer soonest with the data you have. That is your first project; the other two wait for Step 7.
Before you open the data, write a short plan under the question. It stops you drifting into chart-making:
- The number that answers it. Decide the measure. For Wanjiru: "Form 4 enrolment divided by Form 1 enrolment three years earlier, per county." Write down why you chose it and what else you could have used.
- The comparison. A number on its own means nothing. Against what: last year, the national average, a target, other regions?
- What would change the recommendation. "If the five lowest counties are all small, I will check whether a few hundred pupils explain the gap before recommending them."
- What the data cannot tell you. Write this now, before you are attached to a result. Enrolment data shows pupils leaving, not why they leave.
Keep the plan to half a page. Expect to revise it once you see the data, and note what changed and why. That note becomes evidence that you think like an analyst.
Check it worked
Under your first question you have a written measure with a reason, a comparison point, at least one condition that would change your recommendation, and at least one thing the data cannot tell you.
Step 4 · Do the analysis in a form someone else can rerun
A reviewer should be able to open your work and see each step from raw file to answer. Set up the project the same way every time:
- A
data/raw/folder holding the files exactly as downloaded. Never edit them. - A notebook or SQL file that reads from
raw, cleans, and produces the numbers. If you use a notebook, restart it and run every cell from top to bottom before you publish, so the results match the code. A notebook whose cells were run out of order can show results the code no longer produces. - A
data/clean/folder for what the notebook or queries write out, if anything. - A README at the top, which you fill in during Step 6.
Write the cleaning steps where people can read them. Each time you drop rows, rename a region, or fill a gap, add a one-line comment or Markdown cell saying what you did and how many rows it affected. "Dropped 3 rows where county was blank (0.6% of rows)." Clean a CSV file with pandas shows the techniques; what matters here is that the reasons are on the page.
Check your numbers against something independent before you trust them. Add up your county totals and compare them with the national total the publisher reports. If they differ, find out why before going further.
If you put the project on GitHub, a notebook file renders there as a static page, but interactive charts do not run. Use plain image charts in the notebook, or link to the dashboard from Step 5 for anything interactive.
Check it worked
Your project folder has untouched raw files, one notebook or SQL file that runs from start to finish without errors, a comment against every cleaning step that says how many rows it touched, and one cell or query that compares your totals with a published total.
Step 5 · Build one dashboard for the person who asked
Build a dashboard for one project only, the one where the person would come back to the numbers repeatedly. For Wanjiru that was the shop owner's food-price question, since new prices come out every month and the shop owner would check the dashboard after each release before ordering stock. For the county question, a single chart in the write-up was enough.
Use whatever your target adverts name: Power BI, Looker Studio, Tableau, Metabase or a spreadsheet chart sheet all work. Keep it small:
- One screen, one question. Put the answer at the top-left as a single number or short sentence, then up to three supporting charts.
- Titles that state the finding. "Maize flour rose most from March to May" rather than "Prices by month".
- A source line at the bottom with the dataset name, publisher, licence and date of the data.
- Readable on a phone. Many managers will open the link on a phone, often on a slow connection. Check that the top number is readable at phone width and the page is not loaded with heavy images.
If your tool offers a public view link, use it, and make sure no private data is in the file. If it does not, add a clear image of the dashboard to the write-up and the dashboard file to the repository. Design a dashboard people read at a glance goes further into layout.
Check it worked
You have one dashboard, on one screen, whose top-left element answers the project's question, whose chart titles state findings, and whose source line names the dataset and its licence. You have opened it at phone width and can still read the top number.
Step 6 · Write up the first project, answer first
The write-up is what a hiring manager actually reads. Many will read only the first paragraph, so put the answer there. Use the README or a page on your site, with these sections in this order:
- The answer. Two to four sentences: the question, what you found, and what you recommend. Wanjiru's draft, with made-up figures to show the shape: "Five counties kept fewer than 60% of their Form 1 pupils to Form 4 between 2021 and 2024, against 78% nationally. I recommend the retention programme starts in those five, beginning with the two where the gap has grown each year."
- Who asked and why. One short paragraph on the person and the decision.
- Data. The dataset name and publisher, a link to the source page, the licence linked to its text, the date you downloaded it, and what you changed (cleaning, joins, reshaping). This is the attribution the licence asks for, and it lets a reviewer check your work.
- Method. The measure you chose and why, the comparison, and how you checked your totals. Link the notebook or SQL file.
- Findings. One to three charts, each with a title that states what it shows, and a sentence underneath on why it matters for the decision.
- Limits of this analysis. What the data cannot tell you, gaps and definition changes you found, and how confident you are. "Enrolment counts do not show why pupils leave; some may have moved to schools in other counties. The publisher changed how it counts repeaters in one year, so that year is shown but not used in the trend."
- What I would do next. One or two follow-ups, such as data you would need or a question you would ask the person.
Keep it under 800 words. Cut any chart that does not support the answer or the limits. If you used an AI tool to help draft the text or the code, check every number in the write-up against your own notebook output before you publish; the numbers are your responsibility.
Then read the first paragraph aloud to someone who does not work with data. If they cannot tell you what you recommend, rewrite it.
Check it worked
Open your published write-up. The first paragraph names the question, gives the finding with at least one number, and makes a recommendation. The Data section links the dataset's source page and its licence text. There is a section headed "Limits of this analysis" with at least two specific limits.
Step 7 · Plan the other two projects on one page
Go back to your second and third questions. For each, add a short project card to your plan, in the same order as the write-up so you can fill it in later:
- Question, with who asks and the decision.
- Dataset, linked to its row in your "Data log", licence included.
- Measure and comparison, from the same half-page plan you used in Step 3.
- Output: write-up only, or write-up plus the dashboard if you have not built one yet.
- Known limits you can already see.
- Finish date, about three to four weeks after the previous project, using the hours you really have.
Finally, make a portfolio index: a single page, such as your GitHub profile README or a short page on your site, that lists the three projects. Each entry is one line: the question and the recommendation, with a link. For the two planned ones, write the question and "in progress, due (month)". It shows a reviewer what you are working towards.
Check it worked
Your plan has project cards for questions two and three, each with a dataset that has a licence in the "Data log" and a finish date. Your portfolio index page is live with three entries: one linking to the finished write-up, and two marked in progress with a due month.
Next steps
Turn the finished project into a CV bullet with write a tech CV that gets read: the question, the dataset and the recommendation, in one line.
For the technical work behind projects two and three, use clean a CSV file with pandas. If you have not yet tied your projects to the skills in real adverts, go back to pick portfolio projects that show you can do the job.
Related tutorials
- Pick portfolio projects that show you can do the jobYou will turn the skills in real job adverts into a shortlist of two or three four-week portfolio projects, each with a named user or data source, a one-line problem and the skill it proves.
- How to Clean and Summarise a CSV File with pandasYou will take a messy orders CSV with stray spaces, mixed spellings, money written as text, odd dates, missing values and a duplicate row, and clean it with pandas 3.1 on Python 3.15 into a tidy file plus per-country and per-month summaries.
- Design a dashboard people read at a glanceYou will have a one-screen morning dashboard for a clinic manager, built from three questions, with a number, a short chart or a list chosen for each, and a note that maps every element on it to the question it answers.
Need this done for you?
Padding does this work for growing companies, from the first diagnosis to a system that keeps working.
Get new tutorials