<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Changhun Shin — CS-NRRM</title>
    <description>The latest articles on DEV Community by Changhun Shin — CS-NRRM (@changhunshincsnrrm).</description>
    <link>https://dev.to/changhunshincsnrrm</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4279514%2Fcd7c6dc7-133f-4031-9feb-71e8fe84754e.png</url>
      <title>DEV Community: Changhun Shin — CS-NRRM</title>
      <link>https://dev.to/changhunshincsnrrm</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/changhunshincsnrrm"/>
    <language>en</language>
    <item>
      <title>How I Made 12 Years of Skin Observations Easier to Follow</title>
      <dc:creator>Changhun Shin — CS-NRRM</dc:creator>
      <pubDate>Fri, 04 Dec 2026 02:17:23 +0000</pubDate>
      <link>https://dev.to/changhunshincsnrrm/how-i-made-12-years-of-skin-observations-easier-to-follow-4h4n</link>
      <guid>https://dev.to/changhunshincsnrrm/how-i-made-12-years-of-skin-observations-easier-to-follow-4h4n</guid>
      <description>&lt;p&gt;I can put a photo of my skin from 2013 next to one from 2025 and show you a difference. The harder question is the one I care about most: what happened in between?&lt;/p&gt;

&lt;p&gt;I lived through those years with vitiligo. I remember the first white patches, the years of treatment, and the return of my vitiligo in 2018. Yet if you ask me when I first noticed a later change, I still have to open the old photos. Some things are easier to see looking back than they were in the mirror.&lt;/p&gt;

&lt;p&gt;I think of part of that history as my own experience of recovery. I wanted someone reading my account to be able to pause at a particular observation and ask, “What did you record just before this? What did you record next?”&lt;/p&gt;

&lt;p&gt;That turned out to be a practical data problem. Here’s one small part of how I approached it.&lt;br&gt;
Give each observation a way back&lt;br&gt;
My public CSV contains 585 sample records. Each row has its own observation_id, plus two fields that link it to its neighbors. Here are four columns from the first two rows:&lt;br&gt;
observation_id  observation_date    previous_observation_id next_observation_id&lt;br&gt;
CSNRRM-OBS-0001 2013    none    CSNRRM-OBS-0002&lt;br&gt;
CSNRRM-OBS-0002 2013    CSNRRM-OBS-0001 CSNRRM-OBS-0003&lt;/p&gt;

&lt;p&gt;At first glance, those links seem unnecessary. The rows are already next to each other. Why store something I can see just by looking one line up?&lt;/p&gt;

&lt;p&gt;Here’s where the difference matters. Suppose I filter the CSV by anatomical region or copy a handful of rows into a notebook. The row above my observation is now the previous row in my selection. It may be a different record from the one that preceded it in the source. Keeping the original IDs gives me a way back after I’ve changed the view.&lt;br&gt;
Follow one link in Python&lt;br&gt;
Download representative_observation_sample.csv and run this from the same folder. It uses only Python’s standard library.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;csv&lt;/span&gt;

&lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"representative_observation_sample.csv"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;encoding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"utf-8-sig"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;newline&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;observations&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"observation_id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;
        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;csv&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;DictReader&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;observations&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"CSNRRM-OBS-0002"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;previous&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;observations&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"previous_observation_id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Previous:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;previous&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"observation_id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;previous&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"observation_date"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Current: "&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"observation_id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"observation_date"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Link points back:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;previous&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"next_observation_id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"observation_id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output for these two records:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Previous: CSNRRM-OBS-0001 2013
Current:  CSNRRM-OBS-0002 2013
Link points back: True
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That True has a narrow, useful meaning. I followed the second record’s link to the first, and the first points back to the second. Both dates say 2013. The links tell me how to navigate the recorded sequence. The number of days between those observations is still unknown.&lt;br&gt;
What this lets me ask of AI&lt;br&gt;
If I gave an AI assistant the second row and asked, “What was the previous observation?”, I’d want it to follow previous_observation_id and show me the source row. If I then asked, “How many days earlier was that?”, I’d want it to notice that both dates contain only a year.&lt;/p&gt;

&lt;p&gt;Those are two plausible questions a reader might ask in the same conversation. One has an exact answer. The other reaches the limit of what I recorded. Building CS-NRRM™, my non-medical framework for organizing longitudinal observations, has meant thinking carefully about where that line falls.&lt;/p&gt;

&lt;p&gt;The 585 rows are a structural demonstration drawn from four representative composite images in my private archive. They let someone inspect how I organized selected observations. The CSV alone can’t establish why my skin changed or whether another person would have the same experience.&lt;/p&gt;

&lt;p&gt;What it can do matters to me. Years ago, if someone asked what came before a photo, I had to rely on memory and start searching. Now, for a record in this sample, I can give them an ID. They can follow the link themselves. That’s one small piece of my experience I’ve made easier for someone else to examine.&lt;/p&gt;

&lt;p&gt;If you work with longitudinal data, how do you keep the original sequence visible after someone filters, sorts, or exports part of it?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://huggingface.co/datasets/changhunshin/cs-nrrm-observation-sample" rel="noopener noreferrer"&gt;Explore the sample on Hugging Face&lt;/a&gt; · &lt;a href="https://doi.org/10.5281/zenodo.24771995" rel="noopener noreferrer"&gt;Download or cite v1 on Zenodo&lt;/a&gt; · &lt;a href="https://github.com/changhunshin-csnrrm/cs-nrrm/blob/main/representative_observation_sample.csv" rel="noopener noreferrer"&gt;View the CSV on GitHub&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Previous post: &lt;a href="https://dev.to/changhunshincsnrrm/why-i-kept-34-dates-as-years-in-a-585-record-dataset-1oo8"&gt;Why I Kept 34 Dates as Years in a 585-Record Dataset&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>datascience</category>
      <category>data</category>
      <category>ai</category>
    </item>
    <item>
      <title>Why I Kept 34 Dates as Years in a 585-Record Dataset</title>
      <dc:creator>Changhun Shin — CS-NRRM</dc:creator>
      <pubDate>Thu, 03 Dec 2026 03:38:44 +0000</pubDate>
      <link>https://dev.to/changhunshincsnrrm/why-i-kept-34-dates-as-years-in-a-585-record-dataset-1oo8</link>
      <guid>https://dev.to/changhunshincsnrrm/why-i-kept-34-dates-as-years-in-a-585-record-dataset-1oo8</guid>
      <description>&lt;p&gt;The first two rows of my public dataset have different observation IDs, but both list only the year 2013. Here are two columns from the CSV:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;observation_id&lt;/th&gt;
&lt;th&gt;observation_date&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;CSNRRM-OBS-0001&lt;/td&gt;
&lt;td&gt;2013&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CSNRRM-OBS-0002&lt;/td&gt;
&lt;td&gt;2013&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I can tell you which row comes first in the file. If you ask how many days passed between those observations, I can’t answer from the dates I have. They could be days or months apart. They could also fall on the same day.&lt;/p&gt;

&lt;p&gt;In &lt;a href="https://dev.to/changhunshincsnrrm/what-12-years-of-vitiligo-photos-taught-me-about-missing-dates-2phi"&gt;my first DEV post&lt;/a&gt;, I wrote about going back through 12 years of photos and notes I kept while living with vitiligo. For this follow-up, I wanted to answer a smaller question: &lt;strong&gt;How often does the public sample give me a year without a month or day?&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Counting year-only dates in Python
&lt;/h2&gt;

&lt;p&gt;You can reproduce the count with Python’s standard library. Download &lt;code&gt;representative_observation_sample.csv&lt;/code&gt; from the &lt;a href="https://huggingface.co/datasets/changhunshin/cs-nrrm-observation-sample/tree/main" rel="noopener noreferrer"&gt;public sample on Hugging Face&lt;/a&gt; and run this code from the folder containing the file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;csv&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;

&lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"representative_observation_sample.csv"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;encoding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"utf-8-sig"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;newline&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;records&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;csv&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;DictReader&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;year_only&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="n"&gt;row&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;records&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fullmatch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"[0-9]{4}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"observation_date"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{len(year_only)} of {len(records)} records have a year-only date."&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;34 of 585 records have a year-only date.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The check reads each date as text and looks for exactly four digits. That detail matters. If I converted &lt;code&gt;2013&lt;/code&gt; to &lt;code&gt;2013-01-01&lt;/code&gt; before running the check, I would lose the ability to distinguish a year-only entry from an observation actually dated January 1.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happens when I use those rows?
&lt;/h2&gt;

&lt;p&gt;For a count by year, I can include both observations under 2013. For a calculation of days between observations, I leave the interval unknown. Assigning January 1 to both would produce a gap of &lt;strong&gt;zero days&lt;/strong&gt;. That answer looks precise enough to use in a chart, and someone reading the chart would have no reason to question it.&lt;/p&gt;

&lt;p&gt;This is one design choice behind CS-NRRM™, the non-medical framework I use to organize my archive. The 585 rows are a representative sample. Keeping the original date precision lets the next person decide which questions those rows can answer.&lt;/p&gt;

&lt;p&gt;If your database requires a full date, how do you preserve the fact that the source gave you only a year?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://huggingface.co/datasets/changhunshin/cs-nrrm-observation-sample" rel="noopener noreferrer"&gt;Explore the dataset&lt;/a&gt; · &lt;a href="https://github.com/changhunshin-csnrrm/cs-nrrm" rel="noopener noreferrer"&gt;Original GitHub repository&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://doi.org/10.5281/zenodo.24771995" rel="noopener noreferrer"&gt;View and cite the 585-record dataset on Zenodo (v1)&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>datascience</category>
      <category>data</category>
    </item>
    <item>
      <title>What 12 Years of Vitiligo Photos Taught Me About Missing Dates</title>
      <dc:creator>Changhun Shin — CS-NRRM</dc:creator>
      <pubDate>Thu, 03 Dec 2026 03:04:39 +0000</pubDate>
      <link>https://dev.to/changhunshincsnrrm/what-12-years-of-vitiligo-photos-taught-me-about-missing-dates-2phi</link>
      <guid>https://dev.to/changhunshincsnrrm/what-12-years-of-vitiligo-photos-taught-me-about-missing-dates-2phi</guid>
      <description>&lt;p&gt;If I show you two photos of my skin, one from 2013 and one from 2025, you might ask me, “When did you first notice the change?”&lt;/p&gt;

&lt;p&gt;Even though I lived through those years, I still have to go back to my photos and notes to answer.&lt;/p&gt;

&lt;p&gt;My name is Changhun Shin. I kept a personal record of living with vitiligo for 12 years. When I began organizing that archive, I ran into a problem that anyone who works with old data may recognize. Sometimes I know the year of an observation, but the month and day are missing.&lt;/p&gt;

&lt;p&gt;Suppose all I know about a photo is that it was taken in 2021. If I enter &lt;code&gt;2021-01-01&lt;/code&gt; to make it sortable, someone reading the dataset could reasonably conclude that I took it on New Year’s Day. Now imagine a second photo dated March 15, 2021. Sorting the two rows would put the first photo before the second, even though I don’t know which came first.&lt;/p&gt;

&lt;p&gt;That small example helps explain why I developed CS-NRRM™, a framework for organizing observations over time. I want someone reading my records, or writing code to process them, to be able to tell where the timeline is clear and where a question is still open.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.cs-nrrm.com" rel="noopener noreferrer"&gt;Project website&lt;/a&gt; · &lt;a href="https://github.com/changhunshin-csnrrm/cs-nrrm" rel="noopener noreferrer"&gt;GitHub repository&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://huggingface.co/datasets/changhunshin/cs-nrrm-observation-sample" rel="noopener noreferrer"&gt;Explore the 585-record observation sample on Hugging Face&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://doi.org/10.5281/zenodo.24771995" rel="noopener noreferrer"&gt;View and cite the 585-record dataset on Zenodo (v1)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;CS-NRRM™ (Changhun Shin Natural Recovery Pattern Model) is a non-medical, non-clinical longitudinal observation framework. Its scope excludes diagnosis, treatment, and prediction.&lt;/p&gt;

&lt;p&gt;If you’ve worked with photo archives or historical datasets, how do you store a date when all you know is the year?&lt;/p&gt;

</description>
      <category>data</category>
      <category>python</category>
      <category>ai</category>
      <category>datascience</category>
    </item>
  </channel>
</rss>
