CSV Data Example: Sample Export and How to Read It

You've exported your journal, opened it in Excel, and found a table that looks usable. But does an empty dose cell mean a rest day, a skipped entry, or a reflection added that evening? Before you calculate an average, you need to know what each row represents.
A useful CSV data example should show more than tidy columns. It should help you preserve the meaning of dates, missing observations, and linked entries as you move a personal journal between tools.
Table of Contents
- Sample CSV Export with Real Column Values
- How to Read One Dose Row and Its Reflection
- The Rules a Valid CSV File Must Follow
- Delimiter, Encoding and Locale Pitfalls
- Modeling Skipped Days and Later Reflections
- How to Load and Validate the Export
- Analyzing Gaps Without Treating Them as Zero
- Decide Whether the Export Is Ready and Where MicroTrack Fits
Sample CSV Export with Real Column Values
I'm reviewing the "Sample CSV Export with Real Column Values" section. The header has nine columns, but some data rows are missing the dose_amount_g field, resulting in only eight columns. I'll add an empty field for dose_amount_g in those rows to ensure each row correctly matches the nine-column header.
I'm reviewing the field counts for different row types in the CSV export. The "skipped" entry type initially had eight fields, but after adding empty fields for dose_amount_g and mood_score, it now has nine, matching the header. The "reflection" and "rest" rows also correctly have nine fields. I'll retain the existing note about "rest" and "skipped" statuses being extensions of "dose" or "reflection" rows. I'll also keep the GOV.UK link, avoid em-dashes, and remove banned phrases.
I'm reviewing the "Sample CSV Export with Real Column Values" section, noting that the draft mentions locale settings and timezone support. I'll ensure this unique angle is highlighted, perhaps by mentioning how different locale settings could lead to misinterpretation of the data, without adding new factual information. I also need to avoid repeating points about empty dose cells from the previous section, while still clarifying their meaning concisely.
I'm reviewing the draft's structure and content. The instruction to keep "These are illustrative records" is valid, as it clarifies the example data itself, not the source. The structure of opening with the CSV block followed by prose is acceptable. Adding a sentence about each record having exactly nine fields, including explicit empties, would concretely reinforce the fix for the reader.
I'm reviewing the CSV export's structure and the accompanying dictionary. The explicit emptiness of fields, rather than their omission, is key to distinguishing missing data from zero values. The entry_id's stability across related rows, like a dose and its reflection, is a deliberate design choice for longitudinal data, where one entry can span multiple rows. Separating date and time_local is important for accurate chronological and time-of-day analysis, especially when considering timezones.
The draft clarifies that an empty dose field signifies no applicable amount, distinguishing it from a zero value which would imply a measured but non-existent quantity. It also notes that the mood field requires an integer, while notes accept unrestricted text, with commas correctly handled by quotation marks. Before analysis, users must map each column to its definition, pausing if any column remains unexplained or if a row's field count deviates from the header.
I'm reviewing the rest and skipped rows. For the rest row, the mood score of 6 seems plausible given the "Observation only" note, implying the dose was empty. For the skipped row, the original data had one empty field, which I've interpreted as both dose and mood being empty, aligning with the "Journal entry skipped" note. This interpretation is the safest given the ambiguity.
I'm reviewing the phrasing around the hypothetical nature of the data. The original text mentioned "not a person's journal or a guaranteed product export schema." I've refined this to "illustrative records, not a person's journal or a guaranteed product schema" to maintain conciseness while preserving the original intent. The word count is within acceptable limits, and I've confirmed no banned phrases are used. The contrast "identifies the journal entry, not a unique physical row" is a clarifying phrase, not the banned binary contrast.
The draft clarifies that explicit emptiness in CSV fields distinguishes missing data from zero values, which supports accurate interpretation. It also highlights that the entry_id serves as a stable identifier across related rows, and separating date and time_local is vital for chronological analysis, especially when considering timezones.
The draft clarifies that entry_id identifies the journal entry, not a specific row, which is why a dose and its reflection share an ID. This is normal for longitudinal exports where one entry can create multiple rows. Separating date and time_local aids date grouping and time-of-day analysis, while the timezone column is necessary for accurate interpretation across different locales. An empty dose field correctly signifies no amount, avoiding skewing averages by treating it as zero. Users must verify column definitions and row field counts before analysis.
How to Read One Dose Row and Its Reflection
Read the initial record as a sentence: entry MT-000142 was logged on 2026-03-14, at 08:15 in Europe/Berlin. Its type is dose, its schedule label is Fadiman 1-on/2-off, its recorded amount is 0.1 g, and its mood score is 7. The remaining value is the note about a calm morning and a walk.
These values belong to the hypothetical example, not to a dosing recommendation. The amount records what the example user entered; it doesn't establish suitability or safety.
The date uses ISO 8601's year-month-day form. When consistently stored as text in that form, dates sort chronologically, though an import tool can still reinterpret them if automatic conversion is enabled.
What the evening record changes
The reflection has the same entry identifier, but its local time is 20:40, its type is reflection, and its mood score is 6. Its note adds context about sleep and caffeine. The empty amount field prevents that later observation from becoming another dose.
The zone identifies how to interpret the local clock time. For general-purpose schemas, also retain a UTC offset or UTC timestamp, because a named zone and local time can still be ambiguous during a daylight-saving clock change.
Interpretation rule: Count dose records as events. Treat reflections as additional observations attached to those events.
The mood scale is ordinal: a higher score ranks above a lower score, but the distance between scores isn't a clinical measurement. An average can summarize the journal without demonstrating a health effect.
The protocol label preserves the intended schedule. To compare planned days with overrides, retain the actual status and reason in separate fields rather than rewriting that label.
Run these checks on each pair:
- Date validity: The date parses as a calendar date in YYYY-MM-DD form.
- Mood validity: A recorded mood is an integer between 1 and 10.
- Type agreement: The dose row contains an amount; the reflection row doesn't.
The Rules a Valid CSV File Must Follow
A parser first needs to determine where records and fields begin and end. RFC 4180 describes comma-separated fields, consistent field counts, a header following the same separation rules, significant spaces, and no extra comma after the final field. It documents a common convention, not a guarantee that every application behaves identically.
In the sample, every parsed record must contain nine fields. The header establishes their order; each subsequent record supplies values in that same order.
A broken record and its repair
This version is broken because the note contains an unprotected comma:
MT-000142,2026-03-14,08:15,Europe/Berlin,dose,Fadiman 1-on/2-off,0.1,7,Calm morning, light walk
The repaired record protects the entire note:
MT-000142,2026-03-14,08:15,Europe/Berlin,dose,Fadiman 1-on/2-off,0.1,7,"Calm morning, light walk"
The broken version parses into ten fields, creating an unexpected final column. If the notes field occurred earlier, the extra separator would shift every following value into the wrong column.
Quotation marks also protect embedded line breaks and literal quotation marks. A literal quote inside a quoted value is doubled, so a note containing the word calm in quotation marks would be written as "Felt ""calm"" after walking".
Whitespace and record boundaries
Don't assume spaces are decoration. A value such as 7 contains a leading space, and a strict numeric conversion may reject it unless you deliberately trim whitespace.
Likewise, a comma after the final note can create an additional empty field. Empty fields are legitimate when they occupy a defined column, but an accidental extra column changes the structure.
- Use a CSV parser: Don't validate by splitting strings at every comma.
- Count logical records: A quoted multiline note can span physical text lines.
- Preserve the header order: Reordering only the header relabels the data beneath it.
A file is structurally sound when the parser consistently recovers the intended fields, not merely when it looks aligned in a text editor.
Delimiter, Encoding and Locale Pitfalls
A file that works in one region can fail in another. Regional spreadsheet settings may expect semicolons where commas are used as decimal separators. The RFC 4180 specification describes a common comma-separated structure, but it doesn't enforce a universal spreadsheet-import configuration.
That distinction matters when an otherwise readable file appears in a single column. The records may be intact; the importer may be looking for the wrong separator.
Import failures, causes and fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| Everything lands in one column | Semicolon-delimited locale reading a comma file | Set the delimiter to comma on import, or re-export with commas |
| Accented names show as garbled characters | File saved in a legacy character set | Save or import the file as UTF-8 |
| Dates shift by a day or swap month and day | Automatic timezone conversion or ambiguous regional date parsing | Parse dates explicitly as YYYY-MM-DD and preserve the intended timezone |
| Long IDs show as 1.2E+14 | Spreadsheet converts numeric-looking text | Import the entry_id column as text |
Separate delimiters from decimal symbols
The same illustrative record can be serialized with different delimiters:
Comma-delimited:
MT-000142,2026-03-14,08:15,Europe/Berlin,dose,Fadiman 1-on/2-off,0.1,7,"Calm morning, light walk"
Semicolon-delimited:
MT-000142;2026-03-14;08:15;Europe/Berlin;dose;Fadiman 1-on/2-off;0.1;7;"Calm morning, light walk"
The second version is a regional delimited-text variant, not the comma-separated form described by RFC 4180. Declare its delimiter explicitly instead of trusting the filename.
Keep numeric values free of presentation formatting. A decimal-comma value such as 3,5 can become text or be misinterpreted under the wrong locale, while currency signs and thousands separators complicate numeric conversion.
Inspect meaning, not just appearance
An ambiguous date such as 03/04/2026 can mean March or April depending on the import setting. Use YYYY-MM-DD and verify the parsed value before accepting it.
For encoding, declare UTF-8 and inspect accented text you know is present. If characters are already corrupted, resaving the damaged text as UTF-8 won't recover the original characters. The UTF-8 CSV export guide provides a focused workflow for that check.
Scientific notation is another warning, although the display alone doesn't prove digits were lost. Compare the underlying identifier with the raw file, then reimport it as text.
Check the delimiter, encoding, decimal separator, date interpretation, newline handling, and column counts. Which setting in your spreadsheet locale is most likely to conflict with the export?
Modeling Skipped Days and Later Reflections
A skipped observation and an uneventful rest day aren't interchangeable. The Library of Congress description of CSV explains the format's tabular structure and implementation differences, but a CSV container can't tell you what an empty cell means. That requires an explicit schema.
Test every schema against the same situation: a person misses an observation, then adds an evening reflection to an earlier dose entry.
Three schemas for a journal export
| Schema | Best for | Main risk | Skipped-day handling |
|---|---|---|---|
| One row per day | Daily mood trends | Several doses in one day collapse into one row | Empty row needs an explicit status code |
| One row per dose event | Dose counts and timing | Skipped days disappear unless logged | Add a skipped row with a reason |
| Two-phase entries | Adding reflections later | Duplicate events if entry_id changes | Reflection row points to the original entry_id; skipped days carry a status |
A daily schema makes calendar coverage easy to inspect, but an evening reflection may overwrite the morning observation. An event schema preserves timing, but the absence of a row doesn't establish whether a person rested, skipped a planned dose, or didn't log anything.
Extend the schema without changing the original
For an extended two-phase schema, an excerpt might look like this:
entry_id,entry_type,time_local,reflection
MT-000142,dose,08:15,
MT-000142,reflection,20:40,"Slept well, no caffeine after noon"
This is a separate schema variant with an explicit reflection column. The later row adds information without adding a dose event.
Use separate fields such as planned_status, actual_status, override_reason, and missing_reason. A rest day is a schedule state; a skipped observation is a recording state, and either can occur independently of the other.
The Fadiman protocol description places two rest days after each dosing day, so retain those rest-day statuses rather than exporting dose events alone. The Stamets schedule description uses four dosing days followed by three rest days, which a daily calendar can represent with seven status-bearing rows.
Neither schedule establishes clinical effectiveness. Here, protocol names describe timing categories only.
Preservation rule: Keep the raw export unchanged. Record cleaning decisions, revisions, and derived summaries separately.
For revisions, add a revision timestamp or version identifier rather than erasing the earlier value. When producing daily summaries, document which observation wins if a day contains both an initial score and a reflection.
How to Load and Validate the Export
Import deliberately instead of double-clicking the file and accepting automatic conversions. The Python CSV documentation identifies delimiter, quotation, escaping, and line terminators as dialect settings, which is why validation should use a CSV-aware reader.
The workflow starts with preservation, then inspection:

Import with explicit settings
Export and preserve. At MicroTrack, we let users export all their data as CSV at any time. Keep that original unchanged and work on a copy; the common slip is saving spreadsheet conversions over the only raw file.
Open the copy as plain text and inspect its header and first records. Confirm the delimiter and column order rather than assuming the
.csvextension proves either; the common slip is overlooking an unexpected separator.Verify UTF-8. Inspect an accented name or note whose original spelling you know, and check the encoding reported by your editor. Plain English text alone can't distinguish UTF-8 from several legacy encodings, so don't treat an all-ASCII preview as proof.
Import through Excel's From Text/CSV workflow or the equivalent spreadsheet import dialog, setting identifiers and notes to text and dates explicitly to YYYY-MM-DD. The CSV-to-Excel import guide helps with that workflow; the common slip is allowing automatic date or identifier conversion.
Validate structure and relationships
Count parsed fields in every record. Each record in this sample must match the header's field count. An unquoted comma is a likely cause of a mismatch, but don't count physical lines because a valid quoted note can contain line breaks.
Check allowed values and cross-field rules: recorded moods must be integers within the defined scale, and reflection amounts must be blank. The common slip is testing columns independently while missing an invalid combination, such as a reflection with a dose amount.
Validate identity at the correct level. Initial dose identifiers must be unique, and every reflection must refer to an existing initial entry. Because linked rows intentionally share
entry_id, use a row-level key such as entry identifier, type, and timestamp, or add a dedicated record identifier; rejecting every repeated entry identifier would incorrectly reject valid reflections.
A clean import has the same logical record count as the export, the expected columns, and unchanged identifiers. In this simple single-line sample, each record occupies a line; with multiline notes, compare parsed records instead.
Analyzing Gaps Without Treating Them as Zero
| Date | entry_type | dose_amount_g | mood_1_10 |
|---|---|---|---|
| 2026-03-14 | dose | 0.1 | 7 |
| 2026-03-15 | rest | 6 | |
| 2026-03-16 | rest | 7 | |
| 2026-03-17 | dose | 0.1 | 8 |
| 2026-03-18 | skipped | ||
| 2026-03-19 | rest | 6 | |
| 2026-03-20 | dose | 0.1 | 7 |
| 2026-03-21 | skipped | ||
| 2026-03-22 | rest | 6 | |
| 2026-03-23 | dose | 0.1 | 7 |
| 2026-03-24 | skipped | ||
| 2026-03-25 | rest | 7 | |
| 2026-03-26 | dose | 0.1 | 7 |
| 2026-03-27 | rest | 7 |
This hypothetical daily view retains the initial score when a reflection also exists, so the evening score doesn't double-weight that day. Its skipped statuses mean missing daily observations, not necessarily skipped scheduled doses.
The dashboard illustrates the kinds of summaries to inspect:
![]()
Make every denominator visible
- Dose-day frequency: The example contains 5 recorded dose days across 14 calendar days. That's a recorded frequency, not proof of complete adherence.
- Mood comparison: Dose-day scores total 36 across 5 observations, averaging 7.2. Recorded non-dose-day scores total 39 across 6 observations, averaging 6.5.
- Overall mood: The total is 75 across 11 recorded days, averaging 6.8, rounded. Dividing by all 14 days instead gives about 5.4, incorrectly treating missing observations as zero.
With moods in spreadsheet cells D2:D15, use =AVERAGE(D2:D15) and report =COUNT(D2:D15) alongside it. Genuine blank cells are excluded.
A short pandas equivalent is:
import pandas as pd
daily = pd.read_csv("daily_summary.csv")
mood = pd.to_numeric(daily["mood_1_10"], errors="raise")
print(mood.mean(), mood.count(), mood.isna().sum())
For time-of-day analysis, return to the timestamped raw records in the same window. Among the displayed March 14 records, the distribution is one morning dose and one evening reflection, n = 2 timestamped records; the daily table alone can't establish the full window's time distribution.
These differences describe the log, not health outcomes. Keep correlation separate from causation, and share a bounded finding: “My recorded mood averaged 6.8 across 11 of 14 days; three days had no score.”
Decide Whether the Export Is Ready and Where MicroTrack Fits
Analyze only a validated copy. If the structural, value, and relationship checks pass, calculate summaries with explicit denominators. If a check fails, identify the cause, repair the working copy, and rerun validation before interpreting patterns. A skipped day read as a zero, or a reflection row cut loose from its dose entry, distorts every average downstream of it.
MicroTrack supports Fadiman 1-on/2-off, Stamets 4-on/3-off, and custom schedules with skip/add overrides on a calendar. Its journal pairs a 10-point mood scale with two-phase entries, so later reflections stay connected to their dose rows in the export. Built-in insights cover frequency and time-of-day distributions and pattern detection in your own data, a description of the log rather than evidence of therapeutic benefit.
MicroTrack never sells, shares, or trains AI models on users' journals. Treat your downloaded copy with the same care, especially before sharing notes that contain personal context.
A reasonable first project: export your last 30 days, leave the raw file untouched, and run the validation checks on a separate copy.
MicroTrack offers structured journal entries, later reflections, and CSV export so you can examine your history without losing its context. Visit MicroTrack to keep a journal you can export, validate, and analyze on your own terms.