KajoData / python en
Starting Data Science: Excel, SQL, Python and a first model
I follow one project through data definitions, summaries, relationships, a repeatable process and an honest evaluation of predictions.

You want to learn Data Science, and the first question is whether to start with Excel, SQL or Python. I would first check what work you want to do and what questions you can already ask about a dataset. I choose a tool for the next task. Excel, SQL, then Python can be a useful route, especially when moving from office work into analysis. I do not treat that sequence as an entrance requirement for the profession.
This guide follows one route from a small table to an initial prediction problem. The data is synthetic, and the study plan is my suggestion. I am not promising a job after a fixed number of weeks. I want each stage to leave you with something you can explain and change independently. Reproducing a notebook starts an exercise. Making your own decision about the data demonstrates considerably more.
Separate describing data from predicting an outcome
Imagine a shop planning deliveries. Asking how many orders arrived last month requires a definition of an order, a date range and a correct summary. Asking how many will arrive next week also requires a prediction method and an assessment of its errors. Both start with understanding the data, but they produce different deliverables. Choosing between them changes what you need to learn next.
For study purposes, I separate two goals. The first is a trustworthy description of recorded events. The second is predicting a value that is not yet known. Job titles can cover broader responsibilities and overlap between companies. When choosing an exercise, I focus on the activity and the responsibility before the professional label. That keeps me from choosing modeling solely because it sounds more impressive than a table.
Read several vacancies relevant to your goal. Write down the tasks, tools and expected way of presenting a result. Separate recurring requirements from isolated extras. This is a map for your own decision, rather than a survey of the entire labor market. If forecasting interests you, your plan needs forecast evaluation. If reporting interests you, include handing a report to someone who does not know your file.
Use one small table throughout the project
For a first project, I suggest a synthetic order register. Each row represents one order, rather than one basket item. The columns contain an identifier, order date, channel, amount and status. Add a short data dictionary: does the amount include tax, do canceled orders remain in the register, and how is an unknown channel recorded? Those questions will return whatever software you choose.
Start with four records. Two paid online orders have amounts of 100 and 50, a paid telephone order has an amount of 80, and a canceled order has an amount of 40. Under our definition, paid orders total 230. The online channel contributes 150 and the telephone channel 80. A total of 270 suggests that you included the cancellation. These are reference values you can inspect without a computer.
Next, deliberately add a missing channel and a repeated identifier. Decide what they mean before cleaning the table. A repeated identifier could be an export error. In another data model, several items could legitimately share an order number. I require an explanation of what one row represents. A remove-duplicates button cannot decide whether you are deleting a mistake or a valid part of a transaction.
Keep the input and output separate. In your project notes, explain which records you exclude and why. If you cannot reconstruct that decision next week, improve the description of your process. Adding more applications will not solve that problem. The first project is small so you can follow the complete path from one source record to one reported number without losing track of individual cases.
Excel gives you immediate contact with the table
If you already work in Excel, use that starting point. Learn to organize data in columns with a single header row, filter records and build a summary. Microsoft’s PivotTable documentation explains how to create one from a table or range. In this exercise, you want amounts grouped by channel and status, followed by a reconciliation to the register.
I would leave report decoration until later. First ask whether the program is adding amounts or counting cells. An amount imported as text can affect the summary you get. Inspect several source values, the selected range and the aggregation. Then add another record and check whether it appears after refreshing. A useful report should survive the next addition of data, rather than work only during its first presentation.
The completion criterion is practical: explain where 230 came from and why the canceled 40 remains in the source. Also be able to change the definition when someone asks for the value of all submitted orders. Those are different questions. Learning to name them clearly matters more than calling every available sum revenue. A correct calculation can still answer the wrong business question.
If spreadsheets are new to you, use the Excel learning plan. If you can already check such summaries confidently, you do not have to learn every function before moving on. Advanced knowledge of the entire application is not a formal prerequisite for Python. Understanding a table, a missing value and the meaning of a result provides a more useful starting point.
SQL introduces relationships between tables
Next, take the same questions into a relational database. The PostgreSQL tutorial covers selecting data, joins and aggregates. Initially, I would limit this exercise to reading prepared tables. Learn to select the required columns, filter paid orders and group them by channel. The answer should still be comparable with your small spreadsheet, which gives you an independent reference.
Then separate orders from customers. One customer may have several orders. Before joining the tables, write down the expected relationship and record count. If the customer table has two rows for the same identifier, a join may duplicate an order. Your total can increase even though the shop sold nothing new. This is a valuable learning moment because the output may look like a perfectly valid table.
Do not fix that output by adding DISTINCT at random. Return to the key and the definition of the current customer record. Document the rule you used to choose one record. Also distinguish a missing customer match from a customer who has no orders. Understanding these relationships matters because the same difficulty can appear when combining tables in Python later. Changing the language does not remove the underlying data problem.
SQL knowledge does not automatically grant access to company databases. You still need authorized access and an understanding of the tables. A local or training dataset is enough for this exercise. To develop it further, read the LEFT JOIN guide. Pay particular attention to unmatched records and cases in which the number of rows increases after the join.

Add Python to a repeatable task
Once you understand the input and output, Python offers another way to record the process. Begin with language fundamentals: variables, types, conditions, functions and reading error messages. Build library knowledge on top of that foundation. Recognizing the name pandas will not help much if you cannot tell whether a variable contains a string, a number or an entire table. Small language exercises still have a place.
The pandas introductory tutorials cover reading data, selecting records, summaries and combining tables. I suggest reproducing your earlier analysis before looking for a more spectacular dataset. Read the register, inspect types and missing values, select paid orders and prepare the summary. You already have a manual reference, which makes the result easier to assess and individual discrepancies easier to investigate.
A result other than 230 becomes a question about the process. Was the amount read as a number? Does a status contain extra spaces? Did a join duplicate records? Locate the stage at which the answer diverged before changing the calculation. That habit gives you a specific question to take to the documentation. Otherwise, you can keep copying possible solutions until an output merely looks plausible.
Write down how to run the project, which library versions you used and where the input belongs. Explain any path that works only on your own computer. Separate configuration from calculations. Handing the project to another person quickly exposes steps you previously managed from memory. This is a useful check of your working method before any machine learning model enters the process, and it produces something concrete for a project discussion.
Start a first model with the prediction moment
Now consider a synthetic task: predicting whether an order will be canceled. Define when the prediction happens, for example at the moment an order is submitted. Inputs must contain only information available then. A cancellation date and final status reveal the answer. A program may accept those columns, but the experiment would no longer answer the shop’s question about an unknown future outcome.
Next, separate the material used for learning from the data used for evaluation. The scikit-learn guide to data leakage explains that fitting preprocessing on the full dataset can inflate performance estimates. Learn transformation parameters from training data and apply the learned transformation to the other portion. At this stage, understanding the information boundary matters more than memorizing a particular function that splits a table.
Your split needs to match the task. If the aim is predicting future periods, consider evaluation that respects time order. If one person appears repeatedly, consider whether that person should appear on both sides of the split. The scikit-learn cross-validation guide describes strategies for different dependencies. A random split is not a universal answer for every dataset, even if a tutorial uses it successfully.
Compare the model with a simple rule
Before getting excited about a model, define a baseline. In a synthetic sample of one hundred orders, ninety are completed. A rule that always predicts completion gives ninety correct answers, while detecting no cancellations. A high percentage of correct predictions therefore does not establish usefulness for the shop. First explain the cost of a missed cancellation and the cost of a false alarm in the intended process.
My suggestion for a beginner is to show a small confusion table and explain one example of each type of mistake. If the output supports a decision to contact a customer, the recipient needs to understand unnecessary contacts too. Do not claim savings you have not measured. Quality on an exercise dataset tells you something about that experiment. It does not establish a financial outcome after deployment.
If the model beats the baseline, try identifying the cases it handles poorly. If it fails to beat the baseline, you still have material for a useful project. Explain what information is missing and why a more complicated algorithm has not yet provided a useful advantage. A careful account of an unsuccessful experiment can support a better discussion than an impressive score with an unclear definition.
Organize study around deliverables
The first deliverable is a table with a stated row definition and a manually checked total. The second is a spreadsheet summary with documented filters. The third is an SQL equivalent with a record-count check after the join. The fourth is a repeatable Python process. The fifth is a small predictive experiment with a clear prediction moment, baseline and limitations. Each stage should leave an inspectable result.
I would not assign a fixed number of weeks to each one. Someone who already programs may begin with Python and learn spreadsheets while communicating results. Someone handling reports may gain more immediately from SQL. Someone aiming directly at modeling needs to plan statistics, probability and experiment evaluation earlier. Excel and SQL help with tabular work, but they do not exhaust the preparation required for Data Science.
At every stage, answer three questions: what did I do independently, what still requires help, and what error can I now recognize? If your answers are unclear, make the exercise smaller. Avoid adding another library to hide a gap in understanding. I would prefer a small project with a reconciled result over six folders that their author is afraid to run again. Scope is something you can control.
You can also practice explaining the same result to two audiences. A technical reader may want the join rule and treatment of missing values. An operational reader may need the definition of paid orders and the effect of cancellations. Keep the answer consistent while changing the level of detail. This helps reveal whether you understand the calculation or simply remember the sequence of clicks used to obtain it.
Bring statistics into the same questions
I would not postpone statistics until every programming course is finished. Begin by describing a distribution: how many observations are present, how much their values vary and what one unusually large order changes. In our small register, you can inspect amounts individually rather than hiding them behind an average. With a larger dataset later, you will understand why one number cannot describe the whole situation.
Then separate an association from an explanation of cause. If one channel has more cancellations, check whether it handles different products, periods or groups of orders. The difference alone does not establish what would happen if the same customers used another channel. You can propose further questions without pretending that a small table proves their answers. That habit matters in descriptive reports as well as models.
For forecasting, examine error in units the recipient understands. Being wrong by ten orders may matter in daily planning and matter less in an annual summary of a large operation. Record the horizon and decision frequency before choosing a quality measure. Winning on a metric is useful only when improving it relates to the task. Initially, being able to explain what a mistake means is enough to begin.
Use assistance without losing ownership
Documentation, a course and an AI assistant can help you find syntax. I separate that support from letting someone else make the project’s decisions. Before asking for help, write down the expected output on small data and identify the part you do not understand. After receiving an answer, explain what changed and why. If your only explanation is that a tool suggested it, return to a simpler example.
In the project description, also identify work you cannot do yet. You might be able to check a single export without having a process for importing the next file automatically. That is a concrete boundary of the current version. Your next exercise then follows from a real need: accepting another input without manually rewriting calculations. I find that a more useful way to choose study material than restarting everything in another application.
Choose the next step on your own dataset
Return to the four orders and add a paid order worth 20. Under our definition, the total becomes 250. Before refreshing anything, predict the change to the summary, identify its channel and keep the cancellation outside paid sales. Then describe what would change if one row represented an order item instead. This is how operating an application starts becoming an understanding of analysis and its assumptions.
Finally, tell the recipient one finding, one limitation and one possible action. If the evidence does not support a recommendation, name the missing information. You can continue developing that work in whichever tool best fits your goal. The study sequence should help you complete successive tasks. Choose the first deliverable and take it all the way from source records to a clear explanation someone else can question.
Key takeaways
Must I master Excel before Python?
There is no such requirement. Choose the sequence for your goal and starting point, while learning to understand data and check results in any tool.
Are Excel and SQL enough for Data Science?
They help with tables, but modeling also requires statistics, probability and experiment evaluation.
What should a first project show?
Show the data source and definitions, result checks, your own decisions and limitations. For a model, add a baseline and a clear evaluation split.
AI was used in an automated way while working on this article. If you want to learn how to do it too, check out this project.
