In Lithuania a lot of people still celebrate their name day (vardadienis) as much as their birthday. While building a name-day page for a small Lithuanian gift shop, I wanted one simple table: the most popular names in the country and the day(s) each of them is celebrated.
Both pieces exist as data, but they don't fit together out of the box. Here is how I joined them and what broke along the way.
The two sources
1. Most popular names – the State Enterprise Centre of Registers publishes two open datasets on data.gov.lt: the 50 most common women's names (dataset 1753) and men's names (1754). The download is a small pipe-delimited text file:
nr|vardas|viso_vardas|data_formav 1|JONAS|127411|2026-01-03 2|ANTANAS|96205|2026-01-03 3|JUOZAS|88939|2026-01-03 vardas is the name in upper case, viso_vardas is how many people carry it, data_formav is the date the snapshot was generated.
2. The name-day calendar – a dictionary keyed by MM-DD with a list of names for every day of the year. Mine has 366 keys and 2,381 distinct names:
VARD = { "01-01": ["Arvaidas", "Arvaidė", "Eufrozija", "Mečislovas", ...], "01-02": ["Bazilijus", "Fulgentas", "Gailutė", "Mažvydas", ...], # ... } Step 1: load the registry file
import io def load_names(path): rows = io.open(path, encoding="utf-8").read().strip().splitlines()[1:] out = [] for row in rows: nr, name, count, generated = row.split("|") out.append((int(nr), name.strip().capitalize(), int(count), generated)) return out str.capitalize() handles Lithuanian letters fine (ŠARŪNAS → Šarūnas), so there is no need for a custom title-case function.
Step 2: invert the calendar
The calendar is "day → names", but the join needs "name → days":
from collections import defaultdict def name_index(calendar): idx = defaultdict(list) for day, names in sorted(calendar.items()): for name in names: idx[name].append(day) return idx This is where the first surprise shows up: 539 names have more than one date. Marija has four (July 6, July 16, September 8 and 12), Antanas has four, Tomas has seven. Different saints share a name, and the calendar keeps all of them. So the output column has to be a list, not a single date, and the page has to explain why someone can "choose" their name day.
Step 3: the join and the names that don't match
idx = name_index(VARD) for nr, name, count, _ in load_names("vyru_vardai_1754.txt"): days = idx.get(name) print(nr, name, count, days or "–") Most of the top 50 match directly: Jonas → June 24, Ona → July 26, Juozas → March 19, Vytautas → January 5.
But some of the most common names in the registry are not in the Lithuanian calendar at all, because they are stored in their Russian or Belarusian spelling: Ivan (7th most popular men's name), Aleksandr, Vladimir, Aliaksandr, Siarhei, and on the women's side Olga, Irina, Tatjana, Galina.
Guessing is worse than showing nothing, so I used a small explicit mapping only where the Lithuanian equivalent is unambiguous, and left the rest as "–":
LT_FORM = {"Ivan": "Jonas", "Aleksandr": "Aleksandras"} def days_for(name): if name in idx: return idx[name] if name in LT_FORM: return idx[LT_FORM[name]] return None A nice side effect: the list of unmatched names doubles as a QA report for the calendar file itself. Every time the registry snapshot is refreshed, anything new in that list is either a spelling variant or a gap in the calendar.
The result
The joined table now lives on a Lithuanian name day calendar page: today's and tomorrow's name days, search by name, a month-by-month calendar and the top 20 women's and men's names with their dates. The source line under the table credits the Centre of Registers and data.gov.lt with the snapshot date, so it is obvious when the numbers were last refreshed.
If you work with Lithuanian (or any Baltic) personal names, the two lessons are worth keeping in mind: one name can have many dates, and the official registry spelling is not always the spelling your calendar uses.
