A data scientist's week
Where a data scientist's hours go, how to sort a queue of ad-hoc requests by the decision each one serves, and how to keep the model due on Friday from losing to the loudest message
A product manager messages you: 'quick one, can you pull the number of orders by city for last quarter?' It looks like thirty minutes of SQL. What most often turns it into half a day?
Ask a data scientist what they did last week and you often hear a list of answers delivered: a count here, a list there, a chart for a meeting. Ask what they built and the list is shorter, sometimes empty. That gap is the subject of this chapter. The role sits between everyone who has a question and everyone who owns a system, so the week fills from the outside in, one message at a time. What gets squeezed is the work with no requester attached: the model, the experiment design, the check that a pipeline still means what it meant last month.
This chapter gives you a model of the week’s work, a way to sort requests by the decision behind them, a worked week at Ojaline, and a one-page artefact you can use on Monday. The PM version of this problem, in A PM’s week, is about protecting writing time from meetings. Yours is about protecting build time from a queue.
The model: projects, requests and upkeep
A data scientist’s hours fall into three kinds of work, and they fail in different ways.
Projects are the things you own over weeks: a model, an experiment, an analysis with a decision attached. They need long unbroken blocks. Paul Graham’s essay on the maker’s schedule, in the reading, describes the effect: a maker works in half-days, and one meeting in the middle of a morning costs the morning, not the hour. Fitting a model, debugging a leaky feature or reading an experiment all start with loading a lot of context into your head, and an interruption throws it away. Rule of thumb: a block shorter than ninety minutes is not project time.
Requests are work another person starts: a number, a list, a quick look at a chart. They arrive at any time, they have a person waiting, and most are short. They cannot be scheduled, only bounded. Left unbounded they eat the project blocks one polite message at a time.
Upkeep is the work nobody asked for and everybody notices when it stops: reviewing a colleague’s query, checking that last night’s table loaded, looking at whether a model in production still behaves, tidying a notebook so someone else can read it. Sculley and colleagues’ 2015 paper on hidden technical debt in machine learning systems argues that such systems accumulate maintenance cost quietly, through entangled inputs and dependencies on data that can change without warning. You do not need the whole paper to take its point: a model you have shipped is a system you now own, and owning it has a weekly cost.
The three kinds compete for the same hours, and the competition is lopsided. A request has a face and a deadline. A project has a date weeks away. Upkeep has neither. Without a rule, requests win every time, and the project and the upkeep pay for it later.
What a request really is
A request arrives as a noun: a count, a list, a chart. The work is deciding what the noun means and what it is for. The SQL, which most people picture as the work, is usually the shortest part. If you can write a join and an aggregate, which aggregation, windows and CTEs teaches, the query is an hour at most. The rest is settling definitions before you write it and checking your number against what the requester expected after.
Here is who sends requests and what is usually behind them. The examples are Ojaline’s, the marketplace you will follow through this track.
| Who asks | The shape of the ask | What decision may sit behind it | What goes wrong |
|---|---|---|---|
| An executive | A question in plain words: “why did revenue drop?” | What to say to a board, or whether to reverse a recent change | The question is not yet a question. It can be answered four ways, none of which was what they wanted |
| Finance | A defined extract with a hard date: fee income by month and city | A close, a reconciliation, a filing | The date is fixed and the definition is not; a wrong number is worse than a late one |
| Marketing or growth | A list or a count: lapsed buyers, a segment size | Whom to message and when | The same list is requested every fortnight with a slightly different filter |
| A product manager | A “quick” metric | Whether a feature worked or a launch goes ahead | The metric is defined in the request, not in the product, so two PMs get two numbers |
| Operations or engineering | A model or a score they will build on | A feature, a rule, a routing change | They need it by a date and a quality bar neither side wrote down |
| A colleague | A review, a second pair of eyes | Whether a piece of work is safe to publish | It is the first thing to slip, and the cost arrives later |
Notice the pattern. The same question can come in as a different shape: the executive’s “why did revenue drop?” and finance’s fee extract are two views of one set of numbers. Seeing that, before you start, is the point of the next section.
Triage by the decision
Triage is a short conversation you have with yourself, and sometimes with the requester, before any work starts. Four questions, in order.
- What will you do differently depending on the answer? If the requester cannot say, the request is not yet a request. That is not a refusal; it is a reason to ask a better question back.
- By when does that decision happen? The date of the decision, not the date the requester asked for. People ask for things “by Friday” because Friday feels reasonable. The meeting that uses the answer is often nine days away.
- Does the answer already exist? A dashboard, a past analysis, a saved query. Many requests are repeats.
- What is the cheapest answer that serves the decision? Sometimes a number, sometimes a range, sometimes “the direction is clear, the size is not”. A decision that turns on whether a figure is above or below 5% does not need the third decimal place.
Then give each request one of five dispositions.
| Disposition | When it fits | Example |
|---|---|---|
| Do now | A real decision this week, no answer exists, and you are the right person | A launch check for tomorrow |
| Bundle | It has come before or will again | A list that marketing asks for every fortnight becomes a saved query with the filter as a parameter |
| Reshape | The ask is a symptom; the question is not yet formed | “Why did revenue drop?” goes back with two questions |
| Delegate with review | Defined, bounded, and someone else on the team can do it; you check the definition and the result | A finance extract with a clear spec |
| Defer | No decision is attached, or the decision is far off | “Interesting to know” |
Two habits make this work. The first is one intake: a single channel or form where requests go, asking for the decision, the date and the definition. A request that arrives by direct message gets pasted into it. The second is the request log, a plain table with the date, the requester, the decision, the deadline, the hours spent and the disposition. It takes a minute a day. After four weeks it shows which requests repeat, who sends most of them and how many hours they cost, which is the evidence you need to bundle, delegate or say no.
Triage is not obstruction. A requester who gets a reply within the hour that says “I can do this by Thursday; can you tell me what you will decide with it?” usually feels better served than one who gets silence and a number on Friday.
Where practitioners disagree
Data teams argue about how much of this work belongs to a data scientist at all.
Service desk or product team. One view says the team exists to answer the company’s questions, so the queue is the job. Another says the scientists should build things (models, tools, metrics) and a smaller group of analysts should answer questions. The cost of the first is that the team becomes a help desk. The cost of the second is that the people closest to the questions are not the people with the context. The chapter on data philosophies takes this up properly.
Embedded or central. A scientist sitting with one team learns its context and is interrupted by it all day. A scientist in a central team protects her blocks better and knows the business less well. The chapter on embedded, central and hub-and-spoke teams covers the shape question; this chapter assumes a central team and notes where an embedded one differs.
Self-serve first. If every repeated request becomes a dashboard, the queue shrinks. If every request becomes a dashboard, the company ends up with forty dashboards nobody trusts. The chapter on dashboards and self-serve BI sits on this trade-off.
The positions converge on one thing: you need a rule for choosing, and the rule should be about the decision, not about seniority or loudness.
Day to day
Here is an ordinary week for Kweku, a data scientist in Ojaline’s central data team of about ten people, led by Sumaila. He owns a delivery-time model for the checkout screen, supports Growth’s experiments and takes a share of the request queue. The hours are an example, not a standard. The principle is fixed: mornings for the project, early afternoons for meetings, requests in named windows.
Monday.
- 08:45–09:00. Team standup.
- 09:00–09:30. Triage. Read the intake and the weekend’s messages, apply the four questions, give each request a disposition, log it. Close the channels.
- 09:30–12:30. Model block. Monday’s is for the hardest piece, often feature work or a failing evaluation.
- 13:30–14:00. One-to-one with Sumaila. Agenda: what is at risk, what is arriving, what you are declining.
- 14:00–15:30. Request window. Answer the requests triaged “do now”.
Tuesday.
- 08:45–09:00. Standup. 09:00–09:30. Triage.
- 09:30–12:30. Model block.
- 13:30–14:30. Sync with the delivery operations team, the model’s customer. What they need, what the model does badly, what ships when.
- 14:30–16:00. Request window.
Wednesday. The meeting day, deliberately.
- 08:45–09:00. Standup. 09:00–09:30. Triage.
- 09:30–10:30. Analysis review. Two people show an analysis or a query, and the room tries to break it. This is upkeep, and it is where definitions get caught before they reach a decision.
- 10:30–11:30. Experiments sync with Tigist’s Growth team: what is running, what has read out, what is about to start.
- 11:30–12:30. Open. Reading, the second project, or a request that ran over.
- 13:00–14:00. Code review of colleagues’ work.
- 14:00–16:00. Office hours, shared on a rota across the team. Anyone with a question books into this slot instead of interrupting a model block. Graham’s essay describes the same device, used at Y Combinator: office hours fit people who need a manager’s schedule into a maker’s.
Thursday.
- 08:45–09:00. Standup. 09:00–09:30. Triage.
- 09:30–12:30. Model block.
- 13:30–16:00. Second project: an analysis for next month’s planning, or the experiment readout that Growth will need.
Friday.
- 09:00–09:30. Triage.
- 09:30–11:30. The weekly note. What shipped, what was learned, what was asked for and what was done with it, what is next. Update the request log. Send it to Sumaila and the teams you serve; it replaces several status messages.
- 11:30–12:30. Upkeep. Check last night’s loads, look at the production model’s inputs and error against its baseline, read the alerts.
- 14:00–16:00. Lighter. Reading, a demo, helping a colleague.
Add it up. Meetings come to about 4.5 hours. Model blocks are nine hours in three chunks. Request handling (triage, windows and office hours) is about 7.5 hours. Everything else, the second project, reviews, upkeep, the weekly note and reading, is about 9.5. That is 30.5 scheduled hours in a 40-hour week; the rest goes to lunch, overruns and the minutes between things.
Monthly. Read the request log. Anything that appeared three times becomes a saved query, a dashboard or a documented answer. Check the production model against its monitoring plan; the chapter on monitoring models and drift covers it. Spend an hour with someone who uses your numbers and ask what they do with them.
Quarterly. Planning with Sumaila, then a calendar audit using the artefact below, because a week drifts back towards the queue within a quarter of every reset. Quarter close is a known squeeze: finance’s requests rise and everyone’s definitions get tested.
When it breaks. Launch weeks, quarter close and board-pack season do not respect any template. In those weeks you drop project time on purpose, say so to Sumaila on Monday, and put it back the week after. The failure is not a bad week; it is the template dissolving unnoticed and the project quietly becoming a hobby.
A week with a collision
The ordinary week is easy. Here is the one that tests it. It is Monday at 09:15 and Kweku’s triage window has three messages, with the delivery-time model due on Friday.
The model has twelve hours of work left. The current rule-based estimate misses the real delivery time by a median of 14 minutes; the candidate model misses by 11; the target is under 10. These figures are illustrative.
- The chief executive’s question. Sumaila forwards it: “Why did revenue drop? Can you have something by Friday?” The number the chief executive saw is gross merchandise value, which fell 6% in Q3 against Q2. Revenue, meaning the fees Ojaline earns, may not have moved by the same amount. Disposition: reshape. Kweku replies to Sumaila with two questions: what will the answer be used for, and when. Sumaila answers on Tuesday: it goes into the board pack, which is due in nine days. So Friday was a guess. Kweku books a ninety-minute first look on Thursday afternoon (orders against basket size, by city, Q3 against Q2) and schedules the full analysis for the following week, after he has written the question down properly. The next chapter in this track, asking the right question, covers that step.
- Finance’s seller-fee query. Kirsten in finance needs seller-fee income by month and city, Q3 against Q2, net of refunds on cancelled orders, by Thursday noon for the quarter close. Disposition: delegate with review. It is well defined, the date is fixed, and Eyo, an analyst on the team, can write it in about ninety minutes. Kweku reviews the definition and the result for twenty minutes on Tuesday. He also notices that fee income by month and city is the revenue figure the first request needs. Doing finance’s query first gives him the first look’s raw material.
- Marketing’s list. The marketing manager wants buyers in two cities with no order in 60 days, by Wednesday, for a Friday message. Disposition: bundle, then delegate. Eyo writes it as a saved query with the number of days and the city as parameters, which takes about 45 minutes, and next time marketing can ask for a run, not a rebuild. Whether those buyers have agreed to receive marketing messages is a governance question, not covered here, and the query uses the consent flag the data already carries.
The model blocks stay on Monday, Tuesday and Thursday mornings, and Kweku adds Wednesday’s: he asks to present at the analysis review next week and sends Tigist’s team his experiment notes in writing. That is twelve hours. Friday morning is the model hand-off. Nothing was refused. Each request got an answer, a date and an owner within an hour, and the one that needed judgement got the time it needed, not the time it was asked for.
Where weeks go wrong
Answering in arrival order. The loudest or latest message wins, and the project loses.
Answering the noun. Producing the count without settling the definition. The number is wrong for its purpose and nobody learns that until it is on a slide.
The one-off that never ends. A list that is rebuilt every fortnight. The log catches it, and bundling fixes it.
Project time in the gaps. A model built in forty-minute fragments between messages reads like it, and the bugs show up in production.
No upkeep. The model ships on Friday and nobody looks at it again until a customer says the delivery times are wrong.
Delegating without review. Passing requests to an analyst and not checking the definition. The analyst is not at fault; a definition nobody reviewed is.
Saying yes silently and no never. If you are dropping something, say so, with the date it will happen instead. A message that says “this will happen next Tuesday, because the board pack is the decision” is a plan. Silence is a missed deadline.
There may be one person doing data, the founder asks questions in the corridor, and the queue is the whole job. The risk is not too many meetings but no protected time at all. Create the structure yourself: a single place for requests, two mornings a week that everyone knows are for building, and a short weekly note. You are also the analyst, the data engineer and the person who knows where the tables are, so triage matters more here, since there is nobody to delegate to. Start the request log on day one.
This is where the queue breaks. Teams multiply, each wanting its own numbers, and nobody has retired the old requests. A data team of a handful is being built, and a split appears between analysts who answer and scientists who build. Push for one intake and a rota for ad-hoc work, so one person carries the interruptions each week and the rest keep their blocks. The request log pays most here, because it turns “we need more analysts” from a feeling into a number.
Data work is institutional: governed requests, a ticketing system, data owners who must approve access, a reporting calendar fixed by finance and regulators. Many requests cannot be declined, only sequenced, and the dates come from outside. Your leverage is routing: knowing which requests belong to the embedded analyst, which to the central team and which to a governed self-serve view. Expect model time to be the thing the organisation respects least, and protect it with a named purpose and a manager who has fought the same fight.
Template
# Triaged week: <week commencing DD MMM>
Author · Date
## Requests
| # | Who | Ask in their words | Decision it serves | Decision date | Definition to settle | Disposition | Owner and review | Hours |
|---|---|---|---|---|---|---|---|---|
| 1 | | | | | | do now / bundle / reshape / delegate / defer | | |
## Messages to send
- #<n>: "<what you tell the requester: the date, the question you need answered, or the reason for deferral>"
## Project
- <the project>, due <date>, <hours> hours left.
## Target week
| | Mon | Tue | Wed | Thu | Fri |
|---|---|---|---|---|---|
| Morning | | | | | |
| Afternoon | | | | | |
Project blocks: <list, each with its purpose>
Request windows: <times>
Upkeep slot: <time and what>
Meetings total: <hours>
## Risks
- <what might break, and how you will notice>
## Read the request log on: <date> WORKED EXAMPLE
Ojaline is a fictional marketplace with its own delivery fleet. Kweku, a data scientist, triaged his Monday queue with the delivery-time model due Friday and about twelve hours of work left.
Requests.
| # | Who | Decision it serves | Decision date | Definition to settle | Disposition | Owner and review | Hours |
|---|---|---|---|---|---|---|---|
| 1 | Chief executive, via Sumaila | What goes in the board pack | Board pack, nine days out | GMV or fee revenue; which quarter; which cities | Reshape | Kweku; first look Thursday | 1.5 now, about 8 next week |
| 2 | Kirsten, finance | Q3 close | Thursday 12:00 | Fee income net of refunds on cancelled orders | Delegate with review | Eyo writes; Kweku reviews 20 min Tuesday | 1.5 + 0.3 |
| 3 | Marketing manager | Whom to message on Friday | Wednesday | No order in 60 days; consent flag | Bundle, delegate | Eyo, parameterised query | 0.75 |
Messages. To Sumaila: “I will not have a full answer by Friday, and I think the date is the board pack nine days out. Can you confirm? I will send a first look on Thursday and the full analysis by Tuesday evening of the board-pack week.” To marketing: “Wednesday works. Eyo is writing it so you can rerun it with another city or number of days.”
Target week. Model blocks Monday, Tuesday, Wednesday and Thursday 09:30 to 12:30 (twelve hours). Request windows 14:00 to 15:30 on Monday and Tuesday. Thursday 14:00 to 15:30, first look. Upkeep Friday 11:30. Friday 09:30 model hand-off.
Risk. Eyo is on three requests with a review each. Check with Eyo on Tuesday that the load is manageable.
Read the log: Friday of week four. Anything that appears three times becomes a bundle.
Now you
It is the following Monday at Ojaline and the model has shipped. You are Kweku. The board pack is due on Wednesday, so the full revenue analysis, about ten hours with the brief now agreed, has to be done by Tuesday evening. You have six hours of fixed meetings. Four requests arrive. Tigist wants to know whether the six-city rollout can be read at all, because Growth wants to open a new test next week. A product manager wants the number of buyers using the new checkout, by city, ‘quick’. The head of delivery operations wants the model’s error by hour of day as a weekly report ‘for ever’. An engineer asks you to review a pricing query, thirty minutes. The complication: Sumaila is away from Wednesday to Friday, Eyo is on leave on Thursday and Friday, and finance has asked a question about Q3 fees that you suspect is about the same numbers. Produce the triage and the target week.
Self-check
It is Monday at 09:15 at Ojaline. You are a data scientist with a delivery-time model due on Friday and about twelve hours of work left. Three requests have arrived. The chief executive wants to know why revenue dropped, by Friday (forwarded by your head of data). Finance needs a seller-fee extract by Thursday noon for the quarter close. Marketing wants a list of lapsed buyers by Wednesday. An analyst, Eyo, has some room this week. What do you do?
- POST Maker's Schedule, Manager's Schedule Paul Graham, 2009
The essay behind the project block. It explains why one meeting can cost a maker a morning, and how office hours give people who need you a fixed place to go.
- PAPER Hidden Technical Debt in Machine Learning Systems D. Sculley and colleagues, 2015
The case for the upkeep slot in your week: a model in production is a system with a maintenance cost that grows if nobody looks at it. Read: The abstract and the opening sections, on how maintenance cost accumulates.
- DOC Rules of Machine Learning: Best Practices for ML Engineering Martin Zinkevich, Google
A practical guide to the engineering side of shipping a model. Read the early rules before you start a model that a requester has asked for, to check you need one.
- BOOK Data Science for Business Foster Provost and Tom Fawcett, 2013
The classic account of starting from the business problem. It is the background to asking what a request will decide. Read: Chapter 2, on turning a business problem into a data problem.
All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.